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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4338ab
mov eax, dword fs:[0]
push eax
mov eax, 0x4240
call fcn.004263c0
mov eax, dword [0x442080]
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 esi, 0x104
push esi
lea eax, [ebp - 0x234]
xor ebx, ebx
push eax
mov dword [ebp - 0x4248], ebx
push dword [0x44972c]
mov edi, ecx
mov dword [ebp - 0x423c], edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, ebx
je 0x4135b6
cmp eax, esi
jae 0x4135b6
mov dword [ebp - 0x4238], ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
lea eax, [ebp - 0x234]
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x41337a
call fcn.004053e3
jmp 0x413382
mov dword [ebp - 0x4238], eax
xor eax, eax
cmp eax, ebx
jge 0x4133ae
push 0x438a10
push edi
call fcn.00404084
cmp dword [ebp - 0x4238], ebx
je 0x4135c1
push dword [ebp - 0x4238]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4135c1
lea eax, [ebp - 0x4240]
push eax
push dword [ebp - 0x4238]
xor edi, edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x4244], eax
cmp eax, 0xffffffff
jne 0x4133d9
call fcn.004053e3
cmp eax, ebx
jl 0x4133eb
mov edi, dword [ebp - 0x4244]
mov esi, dword [ebp - 0x4240]
xor eax, eax
cmp eax, ebx
jge 0x41341a
push 0x438a10
push dword [ebp - 0x423c]
call fcn.00404084
cmp dword [ebp - 0x4238], ebx
je 0x41340f
push dword [ebp - 0x4238]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x423c]
jmp 0x4135c3
push 0x1fff
lea eax, [ebp - 0x4233]
push ebx
push eax
mov byte [ebp - 0x4234], bl
call fcn.0041ca10
add esp, 0xc
sub edi, 0x2000
push ebx
sbb esi, ebx
lea eax, [ebp - 0x4240]
push eax
mov dword [ebp - 0x4240], esi
mov esi, dword [ebp - 0x4238]
push edi
push esi
mov dword [ebp - 0x4244], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x41346d
call fcn.004053e3
cmp eax, ebx
jl 0x413473
xor eax, eax
cmp eax, ebx
jge 0x41348d
push 0x438a10
push dword [ebp - 0x423c]
call fcn.00404084
cmp esi, ebx
je 0x41340f
push esi
jmp 0x413409
push ebx
lea eax, [ebp - 0x4248]
push eax
push 0x2000
lea eax, [ebp - 0x4234]
push eax
push esi
mov dword [ebp - 0x4248], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4134b9
call fcn.004053e3
jmp 0x4134bb
xor eax, eax
cmp eax, ebx
jl 0x413473
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x4134d9
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x4134c9
sub eax, edx
sar eax, 1
jne 0x413524
push 0x43
pop eax
push 0x55
mov word [ebp - 0x28], ax
pop eax
push 0x53
mov word [ebp - 0x26], ax
pop eax
push 0x54
mov word [ebp - 0x24], ax
pop eax
push 0x44
mov word [ebp - 0x22], ax
pop eax
push 0x41
mov word [ebp - 0x20], ax
pop eax
push 0x54
mov word [ebp - 0x1e], ax
pop eax
mov word [ebp - 0x1c], ax
push 0x41
pop eax
mov word [ebp - 0x1a], ax
push 0x40
pop eax
mov word [ebp - 0x18], ax
xor eax, eax
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x28]
mov dword [ebp + 8], eax
xor esi, esi
mov eax, dword [ebp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x41352c
sub eax, edx
sar eax, 1
mov edi, eax
xor ecx, ecx
cmp edi, ebx
jle 0x413557
mov al, byte [ebp + esi - 0x4234]
mov edx, dword [ebp + 8]
inc esi
cmp al, byte [edx + ecx*2]
jne 0x413557
inc ecx
cmp ecx, edi
jl 0x413542
cmp ecx, edi
je 0x413568
cmp esi, 0x2000
jl 0x413526
jmp 0x4133eb
push 0x1fff
lea eax, [ebp - 0x2233]
push ebx
push eax
mov byte [ebp - 0x2234], bl
call fcn.0041ca10
mov eax, 0x2000
sub eax, esi
push eax
lea eax, [ebp + esi - 0x4234]
push eax
lea eax, [ebp - 0x2234]
push eax
call fcn.0041ead0
add esp, 0x18
lea eax, [ebp - 0x2234]
push eax
push dword [ebp - 0x423c]
call fcn.004135df
jmp 0x4133fb
push 0x438a10
push edi
call fcn.00404084
mov eax, edi
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.0041a944
leave
ret 4