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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4600a8
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x47201c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x3c], esi
mov byte [ebp - 0x31], 0
test eax, eax
jne 0x402e22
xor al, al
jmp 0x4030ee
push 0
push 0x80
push 4
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x40], eax
test eax, eax
je 0x4030cd
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea ebx, [edi + 1]
push ebx
call fcn.0044f611
add esp, 4
push ebx
push 0
push eax
mov dword [0x47a52c], eax
call fcn.00454970
mov ecx, dword [0x47a52c]
mov edx, dword [ebp - 0x40]
add esp, 0xc
push 0
lea eax, [ebp - 0x6c]
push eax
push edi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4030ca
cmp dword [ebp - 0x6c], edi
jne 0x4030ca
mov ecx, dword [0x47a52c]
xor ebx, ebx
cmp ecx, ebx
jne 0x402eab
mov byte [ebp - 0x31], bl
jmp 0x4030ca
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], 0
lea eax, [ebp - 0x50]
push 0x4636f8
push eax
mov byte [ebp - 4], 1
call fcn.00402960
mov ecx, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x50]
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add esp, 8
add eax, edx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], eax
je 0x403069
mov dword [ebp - 0x38], edi
mov ecx, dword [edi + 0x14]
cmp ecx, 0x10
jb 0x402f10
mov edx, dword [edi]
jmp 0x402f12
mov edx, edi
cmp byte [edx], 0x3b
je 0x403051
mov edx, dword [edi + 0x10]
cmp edx, ebx
je 0x403051
cmp ecx, 0x10
jb 0x402f2f
mov eax, dword [edi]
jmp 0x402f31
mov eax, edi
cmp byte [eax], 0x5b
jne 0x402f9c
cmp ecx, 0x10
jb 0x402f3f
mov eax, dword [edi]
jmp 0x402f41
mov eax, edi
cmp byte [edx + eax - 1], 0x5d
jne 0x40310c
mov eax, dword [ebp - 0x30]
mov ecx, 0x10
mov dword [ebp - 0x20], ebx
cmp dword [ebp - 0x1c], ecx
jae 0x402f5f
lea eax, [ebp - 0x30]
mov byte [eax], 0
cmp dword [edi + 0x14], ecx
jb 0x402f6b
mov eax, dword [edi]
jmp 0x402f6d
mov eax, edi
mov edx, dword [edi + 0x10]
mov byte [eax + edx - 1], 0
cmp dword [edi + 0x14], ecx
jb 0x402f7c
mov edi, dword [edi]
lea eax, [edi + 1]
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x402f84
sub ecx, esi
mov edi, ecx
lea esi, [ebp - 0x30]
call fcn.004045a0
jmp 0x403046
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov byte [ebp - 4], 2
cmp ecx, 0x10
jb 0x402fb2
mov ecx, dword [edi]
jmp 0x402fb4
mov ecx, edi
lea eax, [ebp - 0x68]
push 0x4636fc
push eax
call fcn.00402960
mov ecx, dword [ebp - 0x64]
mov ebx, dword [ebp - 0x68]
sub ecx, ebx
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add esp, 8
add ecx, edx
je 0x403171
cmp dword [edi + 0x14], 0x10
jb 0x402fee
mov edi, dword [edi]
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebp - 0x3c]
lea edx, [ebp - 0x30]
lea esi, [edi + eax + 1]
call fcn.00403280
mov edx, ebx
mov ecx, eax
call fcn.004038f0
mov ecx, eax
mov eax, esi
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403010
sub eax, edi
mov edi, eax
mov eax, esi
mov esi, ecx
call fcn.004045a0
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x64]
mov eax, ebx
call fcn.00404b50
push ebx
call fcn.0044f731
add esp, 4
xor eax, eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov esi, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x54]
xor ebx, ebx
mov ecx, dword [ebp - 0x58]
inc ecx
add edi, 0x1c
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x38], edi
cmp ecx, eax
jb 0x402f04
mov edi, dword [ebp - 0x50]
cmp dword [ebp - 0x1c], 0x10
jb 0x40307b
mov edx, dword [ebp - 0x30]
push edx
call fcn.0044f731
add esp, 4
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], 0
cmp edi, ebx
je 0x4030c6
mov esi, dword [ebp - 0x4c]
cmp dword [ebp - 0x50], esi
je 0x4030ba
cmp dword [edi + 0x14], 0x10
jb 0x4030a6
mov eax, dword [edi]
push eax
call fcn.0044f731
add esp, 4
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ebx
mov byte [edi], 0
add edi, 0x1c
cmp edi, esi
jne 0x403095
mov ecx, dword [ebp - 0x50]
push ecx
call fcn.0044f731
add esp, 4
mov byte [ebp - 0x31], 1
mov eax, dword [ebp - 0x40]
cmp eax, 0xffffffff
je 0x4030d9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x47a52c]
test eax, eax
je 0x4030eb
push eax
call fcn.0044f726
add esp, 4
mov al, byte [ebp - 0x31]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044eeef
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esi + 4]
mov eax, dword [edx + 4]
push eax
mov ecx, esi
call fcn.00404130
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [eax], eax
mov eax, dword [esi + 4]
mov dword [eax + 8], eax
cmp dword [ebp - 0x1c], 0x10
mov dword [esi + 8], ebx
jb 0x403140
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0044f731
add esp, 4
mov esi, dword [ebp - 0x50]
mov dword [ebp - 0x20], ebx
cmp esi, ebx
mov byte [ebp - 0x30], 0
mov dword [ebp - 0x1c], 0xf
je 0x403168
mov edi, dword [ebp - 0x4c]
mov eax, esi
call fcn.00404b50
push esi
call fcn.0044f731
add esp, 4
mov byte [ebp - 0x31], 0
jmp 0x4030ca
mov edx, dword [esi + 4]
mov eax, dword [edx + 4]
push eax
mov ecx, esi
call fcn.00404130
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [eax], eax
mov eax, dword [esi + 4]
mov dword [eax + 8], eax
mov dword [esi + 8], 0
test ebx, ebx
je 0x4031ae
mov edi, dword [ebp - 0x64]
mov eax, ebx
call fcn.00404b50
push ebx
call fcn.0044f731
add esp, 4
cmp dword [ebp - 0x1c], 0x10
jb 0x4031c0
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0044f731
add esp, 4
mov esi, dword [ebp - 0x50]
mov dword [ebp - 0x20], 0
test esi, esi
jmp 0x403148