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

Disassembly:
sub esp, 0x7f0
mov eax, dword [0x42610c]
xor eax, esp
mov dword [esp + 0x7ec], eax
mov eax, dword [esp + 0x7f4]
mov ecx, dword [esp + 0x7f8]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x80c]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x1f4
lea edx, [esp + 0x418]
push edx
xor ebx, ebx
push 0xffffffffffffffff
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x818]
push eax
push ebx
push ebx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push 0x1f4
lea eax, [esp + 0x38]
push eax
push 0xffffffffffffffff
lea ecx, [esp + 0x428]
push ecx
push ebx
push 0xfde9
call ebp
push 0x1f4
lea edx, [esp + 0x418]
push edx
push 0xffffffffffffffff
push esi
push ebx
push ebx
call edi
push ebx
push ebx
push 0x1f4
lea eax, [esp + 0x22c]
push eax
push 0xffffffffffffffff
lea ecx, [esp + 0x428]
push ecx
push ebx
push 0xfde9
call ebp
mov edi, dword [esp + 0x14]
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40151c
push 0xb
push 0x5be
push edi
jmp 0x40172f
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
push ebp
call fcn.00411e74
mov edi, eax
add esp, 4
cmp edi, ebx
jne 0x401550
mov eax, dword [esp + 0x10]
push 0xa
push 0x5c3
push 0x4225bf
push 0x7d8
push eax
jmp 0x401739
push ebx
lea ecx, [esp + 0x24]
push ecx
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401723
cmp dword [esp + 0x20], ebp
jne 0x401723
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebp, 4
jbe 0x4016fd
mov eax, 4
sub eax, edi
mov esi, edi
mov dword [esp + 0x28], eax
mov edi, edi
mov ecx, str.32xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4015b7
cmp dl, bl
je 0x4015b3
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4015b7
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x401597
xor eax, eax
jmp 0x4015bc
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4015eb
lea eax, [esp + 0x2c]
mov dword [esp + 0x18], 1
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4015d0
sub eax, edx
inc eax
push eax
lea edx, [esp + 0x30]
push edx
push esi
call fcn.00411f40
add esp, 0xc
jmp 0x401652
mov ecx, str.64xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401612
cmp dl, bl
je 0x40160e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401612
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x4015f2
xor eax, eax
jmp 0x401617
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40164c
lea eax, [esp + 0x220]
mov dword [esp + 0x1c], 1
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401630
sub eax, edx
inc eax
push eax
lea eax, [esp + 0x224]
push eax
push esi
call fcn.00411f40
add esp, 0xc
cmp dword [esp + 0x18], ebx
je 0x401658
cmp dword [esp + 0x1c], ebx
jne 0x401667
mov ecx, dword [esp + 0x28]
inc esi
add ecx, esi
cmp ecx, ebp
jb 0x401590
cmp dword [esp + 0x18], ebx
je 0x4016fd
cmp dword [esp + 0x1c], ebx
je 0x4016fd
mov edx, dword [esp + 0x14]
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4016c1
push edi
call fcn.0041232a
push 0xb
push 0x5c1
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
push 0xf1
push ecx
call fcn.004062d0
add esp, 0x18
jmp 0x401741
push ebx
lea edx, [esp + 0x28]
push edx
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4016ee
cmp dword [esp + 0x24], ebp
jne 0x4016ee
push edi
call fcn.0041232a
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x401744
push edi
call fcn.0041232a
push 0xb
push 0x5c2
jmp 0x4016a5
push edi
call fcn.0041232a
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push 0xb
push 0x5c0
push edx
push 0xf1
push eax
call fcn.004062d0
add esp, 0x18
jmp 0x401741
mov ecx, dword [esp + 0x14]
push 0xb
push 0x5bf
push ecx
mov edx, dword [esp + 0x1c]
push 0xf1
push edx
call fcn.004062d0
add esp, 0x14
or eax, 0xffffffff
mov ecx, dword [esp + 0x7fc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00411e16
add esp, 0x7f0
ret