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

Disassembly:
push 0xffffffffffffffff
push 0x43e40b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x83c
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], edi
call sub.MFC42.DLL_CString::CString_2
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
xor eax, eax
xor ecx, ecx
xor ebx, ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x2c], ecx
push ebx
push ebx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x38], ecx
push 1
push ebx
mov dword [esp + 0x864], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x58], eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x44], ecx
call esi
push ebx
push ebx
push 1
push ebx
mov dword [esp + 0x58], eax
call esi
mov ebp, dword [esp + 0x85c]
push ebx
push 0x40000080
push 3
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x3c]
push ebx
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x42833b
mov edx, dword [ebp + 0x3c]
mov eax, dword [ebp + 0x168]
push edx
push eax
lea ecx, [esp + 0x18]
push 0x4497c0
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea edx, [esp + 0x10]
push 0x29
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call sub.MFC42.DLL_CString::CString_3
mov ecx, ebp
call fcn.00428080
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42868f
mov al, byte [ebp + 0x48]
mov ecx, eax
and ecx, 0xff
add ecx, 0xffffff20
cmp ecx, 6
ja case.default.0x428355
jmp dword [ecx*4 + 0x428760]
mov byte [esp + 0x4f], al
xor al, al
mov byte [esp + 0x4c], 2
mov byte [esp + 0x4d], 0
mov byte [esp + 0x50], al
jmp 0x4284be
push 0x4497b4
push 0x4493e0
call fcn.00406000
mov eax, dword [edi + 0x20]
add esp, 8
cmp eax, ebx
mov byte [esp + 0x4c], 2
mov byte [esp + 0x4d], 0
mov byte [esp + 0x4f], 0xe1
mov byte [esp + 0x51], 0x90
je 0x4283ea
mov esi, dword [ebp + 0x4c]
mov eax, dword [ebp + 0x54]
mov ecx, 0xe
lea edi, [esp + 0x53]
mov byte [esp + 0x52], 0x38
lea edx, [esp + 0x8d]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp + 0x54]
push edx
mov byte [esp + 0x8f], 0x91
mov byte [esp + 0x90], 4
call dword [eax + 0x38]
push eax
call fcn.00401480
mov al, 0x40
add esp, 8
mov byte [esp + 0x50], al
jmp 0x4284be
mov esi, dword [ebp + 0x50]
mov eax, dword [ebp + 0x54]
mov ecx, 0xa
lea edi, [esp + 0x53]
mov byte [esp + 0x52], 0x28
lea edx, [esp + 0x7d]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp + 0x54]
push edx
mov byte [esp + 0x7f], 0x91
mov byte [esp + 0x80], 4
call dword [eax + 0x38]
push eax
call fcn.00401480
mov al, 0x30
add esp, 8
mov byte [esp + 0x50], al
jmp 0x4284be
mov esi, dword [ebp + 0x4c]
mov eax, dword [ebp + 0x64]
mov ecx, 0xe
lea edi, [esp + 0x53]
mov byte [esp + 0x4c], 2
mov byte [esp + 0x4d], 0
mov byte [esp + 0x4f], 0xe2
mov byte [esp + 0x51], 0x90
mov byte [esp + 0x52], 0x38
cmp eax, ebx
rep movsd dword es:[edi], dword [esi]
sete cl
mov al, 0x3d
mov byte [esp + 0x8b], 0x92
mov byte [esp + 0x8c], 1
mov byte [esp + 0x8d], cl
mov byte [esp + 0x50], al
jmp 0x4284be
lea esi, [ebp + 0x68]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x51]
inc cl
mov byte [esp + 0x4c], 2
mov byte [esp + 0x50], cl
mov ecx, dword [esp + 0x50]
and ecx, 0xff
mov byte [esp + 0x4d], 0
mov edx, ecx
mov byte [esp + 0x4f], 0xe5
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov al, byte [esp + 0x50]
mov ecx, dword [esp + 0x48]
add al, 2
mov byte [esp + 0x4e], al
mov eax, dword [esp + 0x4e]
and eax, 0xff
push ecx
add eax, 3
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x38]
lea eax, [esp + 0x1c]
push edx
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x54]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
jne 0x428553
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x428523
mov ecx, dword [esp + 0x48]
push 0x3e8
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebx
je 0x428553
mov edx, dword [ebp + 0x3c]
mov eax, dword [ebp + 0x168]
push edx
push eax
lea ecx, [esp + 0x18]
push 0x4497a8
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea edx, [esp + 0x10]
push 0x29
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
jmp 0x428676
mov al, byte [ebp + 0x48]
cmp al, 0xe3
je case.default.0x428355
cmp al, 0xe4
je case.default.0x428355
mov esi, 3
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x449798
push 0x4493e0
call fcn.00406000
add esp, 8
lea ecx, [esp + 0x24]
lea edx, [esp + 0x1c]
lea eax, [esp + ebx + 0x4c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4285e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x42864b
xor edi, edi
cmp edi, 5
jge 0x42864b
mov eax, dword [ebp + 4]
test eax, eax
je 0x42861e
mov edx, dword [esp + 0x34]
push 0x3e8
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4285e9
inc edi
jmp 0x4285c2
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x4286c0
cmp byte [esp + 0x4c], 2
jne case.default.0x428355
lea eax, [esp + 0x4d]
add ebx, esi
push eax
call fcn.004014a0
add esp, 4
mov esi, eax
mov dword [esp + 0x20], 1
jmp 0x428573
mov ecx, dword [ebp + 0x3c]
mov edx, dword [ebp + 0x168]
push ecx
push edx
lea eax, [esp + 0x18]
push 0x44978c
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea edx, [esp + 0x10]
push 0x2b
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
jmp 0x428676
mov eax, dword [ebp + 0x3c]
mov ecx, dword [ebp + 0x168]
push eax
push ecx
lea edx, [esp + 0x18]
push 0x449780
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea eax, [esp + 0x10]
push 0x2b
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call sub.MFC42.DLL_CString::CString_3
mov ecx, ebp
call fcn.00428080
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x48]
mov dword [ebp + 0x1c], 1
push edx
call esi
mov eax, dword [esp + 0x34]
push eax
call esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x854], 0xffffffff
call sub.MFC42.DLL_CString::CString
or eax, 0xffffffff
jmp 0x428743
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x4f]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push eax
push ebp
call fcn.00428ac0
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov al, byte [ebp + 0x48]
cmp al, 0xe1
je 0x42871f
cmp al, 0xe0
jne 0x4286fa
mov dword [ebp + 8], 1
jmp 0x42871f
cmp al, 0xe3
jne 0x428707
mov dword [ebp + 0x10], 1
jmp 0x42871f
cmp al, 0xe6
jne 0x428714
mov dword [ebp + 0x18], 1
jmp 0x42871f
cmp al, 0xe4
jne 0x42871f
mov dword [ebp + 0x14], 1
mov edx, dword [esp + 0x48]
push edx
call esi
mov eax, dword [esp + 0x34]
push eax
call esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x854], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x84c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x848
ret 4