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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
push 0x400
call fcn.00427ae3
add esp, 4
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
sub eax, 0x3fc
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
add eax, eax
add eax, 0xe
mov dword [ebp - 0x24], eax
mov eax, 0x400
sub eax, dword [ebp - 0x24]
sar eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x1000
jle 0x427d14
mov dword [ebp - 4], 0x1000
mov eax, dword [ebp - 0x48]
add eax, 2
push eax
call fcn.0041a3d0
add esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x48]
add eax, 2
push eax
call fcn.0041a3d0
add esp, 4
mov dword [ebp - 0x34], eax
push 0x402
call fcn.0041a3d0
add esp, 4
mov dword [ebp - 0x44], eax
push 0x402
call fcn.0041a3d0
add esp, 4
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x48]
add eax, 2
push eax
call fcn.0041a3d0
add esp, 4
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x50], eax
push 2
push 0
push dword [ebp + 8]
call dword [sym.imp.MSVCRT20.dll_fseek]
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.MSVCRT20.dll_ftell]
add esp, 4
mov dword [ebp - 0x4c], eax
push 2
push 0
push dword [ebp + 8]
call dword [sym.imp.MSVCRT20.dll_fseek]
add esp, 0xc
push dword [ebp + 8]
push 6
push 1
push str.PSigx
call dword [sym.imp.MSVCRT20.dll_fwrite]
add esp, 0x10
cmp eax, 6
je 0x427ddc
push 0x42fa18
call fcn.004081d7
add esp, 4
push 2
push 0
push dword [ebp + 8]
call dword [sym.imp.MSVCRT20.dll_fseek]
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.MSVCRT20.dll_ftell]
add esp, 4
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], 0
jmp 0x427e10
inc dword [ebp - 0xc]
cmp dword [ebp - 0x18], 0x1000
jbe 0x427e25
shr dword [ebp - 0x18], 1
jmp 0x427e0d
shl dword [ebp - 0x18], 0xa
mov eax, 0xa
sub eax, dword [ebp - 0xc]
mov cl, al
shr dword [ebp - 0x18], cl
mov eax, dword [ebp - 0x4c]
sub edx, edx
div dword [ebp - 0x18]
mov ecx, 0xa
sub ecx, dword [ebp - 0xc]
shr eax, cl
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp + 0x10], 0
je 0x427e61
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
jmp 0x427e6b
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp - 0x30]
mov dword [ebp - 0x30], eax
push 0x431478
push 0
call fcn.004093aa
add esp, 8
push dword [ebp - 0x30]
push str._3dx
push 0
call fcn.004093aa
add esp, 0xc
mov dword [ebp - 0x20], 0
jmp 0x427e9b
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x20], eax
jge 0x428235
push 0x4329d0
push 0
call fcn.004093aa
add esp, 8
mov dword [ebp - 0x28], 0
jmp 0x427ec5
inc dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x48], eax
jle 0x427ef2
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
mov byte [eax + ecx], 0
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
mov al, byte [eax + ecx]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x34]
mov byte [ecx + edx], al
jmp 0x427ec2
mov dword [ebp - 0x28], 0
jmp 0x427f01
inc dword [ebp - 0x28]
cmp dword [ebp - 0x28], 0x400
jge 0x427f2f
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x44]
mov byte [eax + ecx], 0
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x44]
mov al, byte [eax + ecx]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x38]
mov byte [ecx + edx], al
jmp 0x427efe
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x20]
shl eax, 0xa
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x18], eax
jae 0x4280af
push 0
push dword [ebp - 0x18]
push dword [ebp + 8]
call dword [sym.imp.MSVCRT20.dll_fseek]
add esp, 0xc
mov eax, dword [ebp - 0x4c]
sub eax, dword [ebp - 0x18]
cmp eax, 0x400
jb 0x427f72
mov eax, 0x400
mov dword [ebp - 8], eax
push dword [ebp + 8]
push dword [ebp - 8]
push 1
mov eax, dword [ebp - 0x40]
inc eax
push eax
call dword [sym.imp.MSVCRT20.dll_fread]
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x40]
mov byte [eax], 0
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0x28], eax
jmp 0x427fa3
inc dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x48], eax
jle 0x427fbe
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x40]
mov byte [eax + ecx], 0
jmp 0x427fa0
mov dword [ebp - 0x28], 0
jmp 0x427fcd
inc dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x48], eax
jle 0x42801d
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x40]
movsx eax, byte [eax + ecx]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x10]
xor al, byte [ecx + edx]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov byte [ecx + edx], al
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0xc]
cdq
idiv dword [ebp - 0x48]
mov eax, dword [ebp - 0x40]
movsx eax, byte [eax + edx]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x34]
xor al, byte [ecx + edx]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x34]
mov byte [ecx + edx], al
jmp 0x427fca
push 0x400
mov eax, dword [ebp - 0x40]
inc eax
push eax
call fcn.00427a75
add esp, 8
movzx eax, ax
mov dword [0x42d100], eax
push 0x400
mov eax, dword [ebp - 0x40]
inc eax
push eax
call fcn.00418da1
add esp, 8
mov eax, dword [0x42d100]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0xc]
shl eax, 2
sar eax, 1
mov ecx, dword [ebp - 0x14]
lea eax, [eax + ecx*2]
add eax, 0xa
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
inc eax
cmp eax, 0x400
jl 0x428081
push 0x430c88
call fcn.004081d7
add esp, 4
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x44]
mov word [ecx + edx], ax
mov eax, dword [ebp - 0x3c]
shr eax, 0x10
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x38]
mov word [ecx + edx], ax
mov eax, dword [ebp - 0x30]
shl eax, 0xa
add dword [ebp - 0x18], eax
inc dword [ebp - 0xc]
jmp 0x427f3f
mov dword [ebp - 0x28], 0
jmp 0x4280be
inc dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x14], eax
jle 0x428135
mov eax, dword [ebp - 0x48]
sub eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
mov al, byte [eax + ecx]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x44]
mov byte [ecx + edx + 0xa], al
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x44]
mov al, byte [eax + ecx + 0xa]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x38]
mov byte [ecx + edx + 0xa], al
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x34]
mov al, byte [eax + ecx]
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x44]
mov byte [ecx + edx + 0xa], al
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x44]
mov al, byte [eax + ecx + 0xa]
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x38]
mov byte [ecx + edx + 0xa], al
jmp 0x4280bb
mov eax, dword [ebp - 0x44]
mov word [eax], 0x1111
mov eax, dword [ebp - 0x38]
mov word [eax], 0x1111
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x44]
mov word [ecx + 2], ax
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x38]
mov word [ecx + 2], ax
mov eax, dword [ebp - 0x44]
mov word [eax + 4], 0x400
mov eax, dword [ebp - 0x38]
mov word [eax + 4], 0x400
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x44]
mov dword [ecx + 6], eax
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x38]
mov dword [ecx + 6], eax
mov dword [ebp - 0xc], 0
jmp 0x42818c
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 4
jge 0x428230
push 0x3fc
mov eax, dword [ebp - 0xc]
push dword [ebp + eax*4 - 0x5c]
mov eax, dword [ebp - 0x40]
add eax, 4
push eax
call fcn.00427bcd
add esp, 0xc
mov dword [0x42d100], 0xffffffff
push 0x3fc
mov eax, dword [ebp - 0x40]
add eax, 4
push eax
call fcn.00418da1
add esp, 8
mov eax, dword [0x42d100]
mov ecx, dword [ebp - 0x40]
mov dword [ecx], eax
push 0
mov eax, dword [ebp - 0x30]
imul eax, dword [ebp - 0xc]
shl eax, 0xa
mov ecx, dword [ebp - 0x20]
shl ecx, 0xa
add eax, ecx
add eax, dword [ebp - 0x2c]
push eax
push dword [ebp + 8]
call dword [sym.imp.MSVCRT20.dll_fseek]
add esp, 0xc
push dword [ebp + 8]
push 0x400
push 1
push dword [ebp - 0x40]
call dword [sym.imp.MSVCRT20.dll_fwrite]
add esp, 0x10
cmp eax, 0x400
je 0x42822b
push 0x42fa18
call fcn.004081d7
add esp, 4
jmp 0x428189
jmp 0x427e98
push 2
push 0
push dword [ebp + 8]
call dword [sym.imp.MSVCRT20.dll_fseek]
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.MSVCRT20.dll_ftell]
add esp, 4
sub eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], eax
push dword [ebp - 0x4c]
push dword [ebp - 0x18]
call fcn.00427b54
add esp, 8
mov dword [ebp - 0x1c], eax
call fcn.004173be
mov ecx, 0xa
mov eax, dword [ebp - 0x1c]
cdq
idiv ecx
push edx
mov ecx, 0xa
mov eax, dword [ebp - 0x1c]
cdq
idiv ecx
push eax
push dword [ebp - 0x18]
push 0x430dd8
push 0
call fcn.004093aa
add esp, 0x14
push dword [ebp - 0x10]
call dword [sym.imp.MSVCRT20.dll_free]
add esp, 4
push dword [ebp - 0x34]
call dword [sym.imp.MSVCRT20.dll_free]
add esp, 4
push dword [ebp - 0x44]
call dword [sym.imp.MSVCRT20.dll_free]
add esp, 4
push dword [ebp - 0x38]
call dword [sym.imp.MSVCRT20.dll_free]
add esp, 4
push dword [ebp - 0x40]
call dword [sym.imp.MSVCRT20.dll_free]
add esp, 4
xor eax, eax
jmp 0x4282da
pop edi
pop esi
pop ebx
leave
ret