Function at 0x403790
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4045d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString
mov ebx, dword [esp + 0x2c]
push 0
push 0
push 3
push 0
push 1
push 0xc0000000
push ebx
mov byte [esp + 0x40], 1
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x4039e1
cmp esi, 0xffffffff
je 0x4039e1
push ebp
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::CString
mov ebp, dword [sym.imp.MSVCRT.dll__mbscmp]
mov byte [esp + 0x28], 3
xor ebx, ebx
lea eax, [esp + 0x18]
push esi
push eax
mov ecx, edi
call fcn.00401a30
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 4
call fcn.00403ca0
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 3
call fcn.00403b86
mov ecx, dword [esp + 0x30]
push str._version_
push ecx
inc ebx
call ebp
add esp, 8
test eax, eax
je 0x403869
mov edx, dword [esp + 0x30]
push str._Version_
push edx
call ebp
add esp, 8
test eax, eax
je 0x403869
cmp ebx, 0x1388
jle 0x403810
mov eax, dword [esp + 0x30]
push str._version_
push eax
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 8
test eax, eax
jne 0x403901
lea ecx, [esp + 0x18]
push esi
push ecx
mov ecx, edi
call fcn.00401a30
lea ecx, [esp + 0x18]
call fcn.00403b86
lea edx, [esp + 0x18]
push esi
push edx
mov ecx, edi
call fcn.00401a30
lea ecx, [esp + 0x18]
call fcn.00403b86
lea eax, [esp + 0x18]
push esi
push eax
mov ecx, edi
call fcn.00401a30
lea ecx, [esp + 0x18]
call fcn.00403b86
lea ecx, [esp + 0x18]
push esi
push ecx
mov ecx, edi
call fcn.00401a30
lea ecx, [esp + 0x18]
call fcn.00403b86
lea edx, [esp + 0x18]
push esi
push edx
mov ecx, edi
call fcn.00401a30
lea ecx, [esp + 0x18]
call fcn.00403b86
lea eax, [esp + 0x1c]
push 0
push eax
push 0x12
push str._CatalogFilexxxxx
push esi
call ebx
mov ecx, dword [esp + 0x30]
push str._Version_
push ecx
call ebp
add esp, 8
test eax, eax
pop ebp
jne 0x403994
lea edx, [esp + 0x14]
push esi
push edx
mov ecx, edi
call fcn.00401a30
lea ecx, [esp + 0x14]
call fcn.00403b86
lea eax, [esp + 0x14]
push esi
push eax
mov ecx, edi
call fcn.00401a30
lea ecx, [esp + 0x14]
call fcn.00403b86
lea ecx, [esp + 0x14]
push esi
push ecx
mov ecx, edi
call fcn.00401a30
lea ecx, [esp + 0x14]
call fcn.00403b86
lea edx, [esp + 0x14]
push esi
push edx
mov ecx, edi
call fcn.00401a30
lea ecx, [esp + 0x14]
call fcn.00403b86
lea eax, [esp + 0x14]
push esi
push eax
mov ecx, edi
call fcn.00401a30
lea ecx, [esp + 0x14]
call fcn.00403b86
lea ecx, [esp + 0x18]
push 0
push ecx
push 0x12
push str._CatalogFilexxxxx
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24], 1
call fcn.00403b86
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 0
call fcn.00403b86
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.00403b86
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
mov al, byte [0x407020]
test al, al
je 0x403a2e
mov al, byte [edi + 0x68]
test al, al
jne 0x403a2e
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString
push ebx
lea edx, [esp + 0x30]
push str.Error_opening_driver_file__s_n
push edx
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x38]
add esp, 0xc
push 0
push 0x40
push eax
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24], 1
call fcn.00403b86
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 0
call fcn.00403b86
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.00403b86
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4