Function at 0x429460
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x43e4a6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1fc
mov dword [esp + 8], ecx
xor eax, eax
xor ecx, ecx
push ebx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x34], ecx
push ebp
push esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x40], ecx
push edi
xor edi, edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], edi
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edi
call sub.MFC42.DLL_CString::CString_2
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push edi
push edi
push 1
push edi
mov dword [esp + 0x224], edi
call esi
push edi
push edi
push 1
push edi
mov dword [esp + 0x44], eax
call esi
mov ebp, dword [esp + 0x21c]
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0x3c]
push 0
push 0x40000080
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov al, byte [ebp + 0x48]
cmp al, 0xe0
mov dword [esp + 0x1c], edi
jne 0x429523
lea edx, [esp + 0x10c]
push edx
push 0
push 0
push 0xe0
jmp 0x4295e9
mov eax, dword [ebp + 0x54]
lea esi, [ebp + 0x54]
mov ecx, esi
call dword [eax + 0x38]
lea ecx, [esp + 0x4e]
mov dword [esp + 0x10], eax
push ecx
push eax
mov byte [esp + 0x54], 0x91
mov byte [esp + 0x55], 4
call fcn.00401480
mov edx, dword [esi]
add esp, 8
lea eax, [esp + 0x20]
mov ecx, esi
push eax
mov dword [esp + 0x14], 6
call dword [edx + 0x18]
push 0
push 0x4498b0
mov ecx, eax
mov byte [esp + 0x21c], 1
call sub.MFC42.DLL_CString::Find_2
test eax, eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x214], 0
setg bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x429597
mov byte [ebp + 0x160], 1
jmp 0x42959e
mov byte [ebp + 0x160], 0
mov al, byte [ebp + 0x160]
test al, al
je 0x4295d1
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4498a4]
mov edx, dword [0x4498a8]
add eax, 0xa
mov byte [esp + 0x52], 0x90
mov byte [esp + 0x53], 8
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], edx
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x10c]
push eax
xor eax, eax
mov al, byte [ebp + 0x48]
lea edx, [esp + 0x50]
push ecx
push edx
push eax
mov ecx, dword [esp + 0x28]
call fcn.00429880
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x10], eax
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x24]
lea eax, [esp + 0x10]
push edx
push eax
lea edx, [esp + 0x114]
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x42964c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x429837
mov eax, dword [esp + 0x34]
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x429837
xor edi, edi
mov esi, 3
xor ebx, ebx
mov ecx, dword [esp + 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea edx, [esp + 0x38]
lea eax, [esp + 0x10]
push edx
mov edx, dword [esp + 0x20]
push eax
lea ecx, [esp + edi + 0x114]
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4296ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x429837
mov eax, dword [esp + 0x48]
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x429837
test ebx, ebx
jne 0x4296e8
cmp byte [esp + 0x10c], 2
jne 0x429837
mov ecx, dword [esp + 0x10e]
add edi, esi
mov esi, dword [esp + 0x10d]
and ecx, 0xff
and esi, 0xff
mov ebx, 1
shl esi, 8
or esi, ecx
jmp 0x429655
mov eax, dword [esp + 0x10]
push 0
lea edx, [esp + 0x70]
push 8
push edx
lea ecx, [esp + 0x11b]
push eax
push ecx
call fcn.004014e0
add esp, 0x14
test eax, eax
jl 0x429837
mov al, byte [ebp + 0x48]
push 0
cmp al, 0xe0
jne 0x4297d8
lea edx, [esp + 0x70]
push edx
push 0x80
push 0
call fcn.00401720
add esp, 0x10
test eax, eax
je 0x429837
lea eax, [eax + eax*4]
lea edx, [esp + 0x14]
mov ecx, dword [esp + eax*4 + 0x7c]
push ecx
push 0x448dcc
push edx
call sub.MFC42.DLL_CString::Format
lea eax, [esp + 0x78]
push 0
push eax
push 0x87
push 0
call fcn.00401720
add esp, 0x1c
test eax, eax
je 0x429787
lea ecx, [eax + eax*4]
mov eax, dword [esp + ecx*4 + 0x7c]
cmp byte [eax], 0
je 0x429787
push eax
lea edx, [esp + 0x18]
push 0x448dcc
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [esp + 0x6c]
push 0
push eax
push 0x87
push 0
call fcn.00401720
add esp, 0x10
test eax, eax
je 0x429837
lea ecx, [eax + eax*4]
mov eax, dword [esp + ecx*4 + 0x7c]
cmp byte [eax], 0
je 0x429837
push eax
lea edx, [esp + 0x18]
push 0x448dcc
push edx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x28]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4294e4
lea eax, [esp + 0x70]
push eax
push 0x99
push 0
call fcn.00401720
add esp, 0x10
test eax, eax
je 0x429837
lea ecx, [eax + eax*4]
mov edx, dword [esp + ecx*4 + 0x7c]
mov al, byte [edx]
test al, al
je 0x429825
and eax, 0xff
push eax
lea eax, [esp + 0x18]
push 0x449894
push eax
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x28]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4294e4
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.00429900
test eax, eax
jne 0x429847
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4294e4
lea ecx, [esp + 0x14]
mov dword [esp + 0x214], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20c]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x208
ret 4