Function at 0x42f1bc
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x42f1c4
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x42f428
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [esi + 4]
lea eax, [eax + eax*8]
mov edx, dword [0x443ca8]
mov eax, dword [edx + eax*4 + 0xc]
lea edx, [ebp - 0x24]
call fcn.00422dbc
mov eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
mov edx, dword [esi + 4]
lea edx, [edx + edx*8]
mov ecx, dword [0x443ca8]
mov edx, dword [ecx + edx*4 + 4]
call fcn.00406ee4
mov edx, dword [ebp - 0x28]
lea ecx, [ebp - 4]
pop eax
call fcn.00423010
lea eax, [ebp - 8]
mov ebx, dword [esi + 4]
lea ebx, [ebx + ebx*8]
mov edx, dword [0x443ca8]
mov edx, dword [edx + ebx*4 + 0x10]
mov ecx, 0
call fcn.00406a68
lea eax, [ebp - 0xc]
mov edx, dword [0x443ca8]
mov edx, dword [edx + ebx*4 + 0x14]
mov ecx, 0
call fcn.00406a68
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
mov eax, dword [ebp - 4]
call fcn.00406e8c
push eax
call sub.kernel32.dll_CreateFileW
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x42f281
or ebx, 0xffffffff
jmp 0x42f3f8
push 0
push ebx
call sub.kernel32.dll_GetFileSize
mov edi, eax
test edi, edi
jge 0x42f299
mov ebx, 0xfffffffe
jmp 0x42f3f8
lea eax, [ebp - 0x10]
xor ecx, ecx
mov edx, edi
call fcn.00406c70
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
mov eax, dword [ebp - 0x10]
push eax
push ebx
call sub.kernel32.dll_ReadFile
lea eax, [ebp - 0x14]
xor ecx, ecx
mov edx, edi
call fcn.00406c70
push 0
push 0
push 0
push ebx
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
mov eax, dword [ebp - 0x14]
push eax
push ebx
call sub.kernel32.dll_ReadFile
mov eax, dword [ebp - 0x10]
call fcn.00406bac
push eax
call sub.user32.dll_CharLowerA
mov edi, dword [ebp - 8]
test edi, edi
je 0x42f2f9
sub edi, 4
mov edi, dword [edi]
push 0
mov eax, dword [ebp - 8]
call fcn.00406bac
mov edx, eax
lea eax, [ebp - 0x18]
mov ecx, edi
call fcn.004065d4
mov eax, dword [ebp - 0x18]
call fcn.00406bac
push eax
call sub.user32.dll_CharLowerA
push 0x42f444
push dword [ebp - 4]
push 0x42f478
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 8]
call fcn.00406f3c
push dword [ebp - 0x2c]
push 0x42f49c
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 0xc]
call fcn.00406f3c
push dword [ebp - 0x30]
lea eax, [esi + 0x10]
mov edx, 6
call fcn.004070ec
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
call fcn.0042211c
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jle 0x42f3e3
push 0
push 0
mov eax, dword [ebp - 0x1c]
dec eax
push eax
push ebx
call sub.kernel32.dll_SetFilePointer
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x42f387
sub eax, 4
mov eax, dword [eax]
push 0
lea edx, [ebp - 0x20]
push edx
push eax
mov eax, dword [ebp - 0xc]
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x42f3a4
sub eax, 4
mov eax, dword [eax]
mov ecx, dword [ebp - 0x1c]
dec ecx
add ecx, eax
lea eax, [ebp - 0x14]
mov edx, 1
call fcn.00406c24
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x42f3c3
sub eax, 4
mov eax, dword [eax]
push 0
lea edx, [ebp - 0x20]
push edx
push eax
mov eax, dword [ebp - 0x14]
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
lea eax, [esi + 0x10]
mov edx, 0x42f4c4
call fcn.0040700c
jmp 0x42f3f0
lea eax, [esi + 0x10]
mov edx, 0x42f4e8
call fcn.0040700c
push ebx
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42f42f
lea eax, [ebp - 0x30]
mov edx, 4
call fcn.00406488
lea eax, [ebp - 0x18]
mov edx, 5
call fcn.004064b8
lea eax, [ebp - 4]
call fcn.00406428
ret