Function at 0x4031f0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42c781
mov eax, dword fs:[0]
push eax
sub esp, 0x190
mov eax, dword [0x43b83c]
xor eax, esp
mov dword [esp + 0x188], eax
push ebx
push esi
push edi
mov eax, dword [0x43b83c]
xor eax, esp
push eax
lea eax, [esp + 0x1a0]
mov dword fs:[0], eax
mov dword [esp + 0x18], ecx
push 0x103
lea eax, [esp + 0x91]
push 0
push eax
mov byte [esp + 0x98], 0
call fcn.0041ba20
add esp, 0xc
lea eax, [esp + 0x8c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp eax, 0x104
jne 0x403276
xor eax, eax
jmp 0x40349c
cmp byte [esp + 0x8c], 0
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x68], 0
mov byte [esp + 0x58], 0
jne 0x403299
xor ecx, ecx
jmp 0x4032ac
lea ecx, [esp + 0x8c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4032a3
sub ecx, edx
push ecx
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x60]
call fcn.004041c0
push 0
push 0
push 3
push 0
mov dword [esp + 0x1b8], 0
cmp dword [esp + 0x7c], 0x10
push 0
lea eax, [esp + 0x6c]
cmovae eax, dword [esp + 0x6c]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x403485
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
mov dword [esp + 0x20], edi
call fcn.00414b60
add esp, 4
lea ecx, [esp + 0x88]
push 0
push ecx
push edi
push eax
push esi
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403485
push str.data
lea ecx, [esp + 0x74]
xor bl, bl
mov dword [esp + 0x14], 0
call fcn.00403ae0
lea eax, [esp + 0x70]
push eax
mov edx, 0x434f6c
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1ac], 1
call fcn.004048f0
push 0x434f68
mov edx, eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x1b0], 2
call fcn.004049e0
add esp, 8
cmp dword [esp + 0x3c], 0x10
jb 0x403390
push dword [esp + 0x28]
call fcn.004152b7
add esp, 4
mov esi, dword [esp + 0x14]
mov eax, edi
mov edi, dword [esp + 0x50]
sub eax, edi
mov dword [esp + 0x20], eax
xor eax, eax
cmp eax, dword [esp + 0x20]
jae 0x40340d
push 0
lea ecx, [esp + 0x44]
call fcn.00403ce0
movsx ecx, byte [eax]
movzx eax, byte [esi]
cmp eax, ecx
jne 0x4033fd
xor edx, edx
mov bl, 1
test edi, edi
jle 0x4033fd
jmp 0x4033d0
cmp dword [esp + 0x54], 0x10
movzx ecx, byte [esi + edx]
lea eax, [esp + 0x40]
cmovae eax, dword [esp + 0x40]
movzx ebx, bl
movsx eax, byte [eax + edx]
cmp ecx, eax
mov dword [esp + 0x24], 0
cmovne ebx, dword [esp + 0x24]
inc edx
cmp edx, edi
jl 0x4033d0
mov eax, dword [esp + 0x10]
inc eax
inc esi
mov dword [esp + 0x10], eax
test bl, bl
je 0x4033a2
jmp 0x403411
test bl, bl
je 0x403428
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
dec eax
add eax, edi
sub ecx, eax
mov dword [edx], ecx
add esi, eax
jmp 0x40342a
xor esi, esi
cmp dword [esp + 0x54], 0x10
jb 0x40343d
push dword [esp + 0x40]
call fcn.004152b7
add esp, 4
cmp dword [esp + 0x84], 0x10
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], 0
mov byte [esp + 0x40], 0
jb 0x403468
push dword [esp + 0x70]
call fcn.004152b7
add esp, 4
mov dword [esp + 0x84], 0xf
mov dword [esp + 0x80], 0
mov byte [esp + 0x70], 0
jmp 0x403487
xor esi, esi
cmp dword [esp + 0x6c], 0x10
jb 0x40349a
push dword [esp + 0x58]
call fcn.004152b7
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x1a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x188]
xor ecx, esp
call fcn.00415144
mov esp, ebp
pop ebp
ret