Function at 0x45b5e4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20040
call fcn.004c5de0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov ebx, ecx
cmp esi, edi
je 0x45b6ba
call fcn.0045aaed
mov ecx, esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
call fcn.0045aaed
mov ecx, esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
call fcn.00421820
test eax, eax
jne 0x45b6ba
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x1c]
jne 0x45b66e
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 0x18]
jne 0x45b66e
cmp eax, edi
jne 0x45b646
cmp ecx, edi
jne 0x45b646
push 1
jmp 0x45b670
push 0xfffffffffffffff3
mov ecx, ebx
call fcn.0045b3c6
test eax, eax
je 0x45b676
push 0xfffffffffffffff3
mov ecx, esi
call fcn.0045b3c6
test eax, eax
je 0x45b676
mov eax, dword [ebx + 0xb4]
cmp eax, dword [esi + 0xb4]
je 0x45b676
push 2
pop eax
jmp 0x45b991
test byte [0x4d9124], 0x80
jne 0x45b6c3
test byte [ebx + 0x27], 0x40
mov edi, 0x1000
je 0x45b69f
mov ecx, ebx
call fcn.0045a7aa
and eax, edi
sub eax, edi
neg eax
sbb eax, eax
inc eax
mov dword [ebp + 8], eax
jne 0x45b6ba
test byte [esi + 0x27], 0x40
je 0x45b6c1
mov ecx, esi
call fcn.0045a7aa
and eax, edi
sub eax, edi
neg eax
sbb eax, eax
inc eax
mov dword [ebp + 8], eax
je 0x45b6c1
xor eax, eax
jmp 0x45b991
xor edi, edi
mov eax, dword [ebx]
lea ecx, [ebp - 0x2c]
push edi
push ecx
mov ecx, ebx
call dword [eax + 0x1c]
mov eax, dword [esi]
lea ecx, [ebp - 0x24]
push edi
push ecx
mov ecx, esi
call dword [eax + 0x1c]
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx - 8], edi
je 0x45b97f
mov eax, dword [ebp - 0x24]
cmp dword [eax - 8], edi
je 0x45b97f
mov eax, dword [0x4e9e94]
mov edx, dword fs:[0x2c]
mov dword [ebp + 8], edi
mov dword [ebp - 4], edi
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x34], eax
mov eax, dword [eax + 4]
mov ebx, dword [eax + 0x728]
shl ebx, 0x14
cmp edi, dword [ebp - 0xc]
jl 0x45b72b
jg 0x45b726
cmp ebx, dword [ebp - 0x10]
jbe 0x45b72b
mov ebx, dword [ebp - 0x10]
jmp 0x45b74b
push 0xa
mov eax, ebx
xor edx, edx
pop esi
div esi
mov dword [ebp - 4], eax
add eax, ebx
cmp edi, dword [ebp - 0xc]
jl 0x45b74b
jg 0x45b745
cmp eax, dword [ebp - 0x10]
jb 0x45b74b
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 4], edi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push edi
push 0x8000080
push 3
push edi
mov edi, SysReAllocStringLen
push 1
push edi
push ecx
mov dword [ebp - 0x28], ebx
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0x20], eax
je 0x45b96c
push 0
push 0x8000080
push 3
push 0
push 1
push edi
push dword [ebp - 0x24]
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x45b95d
call fcn.004712c4
test eax, eax
jne 0x45b809
mov edi, 0x10000
cmp ebx, edi
mov dword [ebp - 8], edi
jae 0x45b7ab
mov dword [ebp - 8], ebx
lea eax, [ebp - 0x30]
push 0
push eax
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 8]
lea eax, [ebp - 0x20040]
push eax
push dword [ebp - 0x20]
call esi
test eax, eax
je 0x45b81e
lea eax, [ebp - 0x38]
push 0
push eax
lea eax, [ebp - 0x10040]
push dword [ebp - 8]
push eax
push dword [ebp - 0x14]
call esi
test eax, eax
je 0x45b81e
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x38], eax
jne 0x45b81e
test eax, eax
je 0x45b812
mov ecx, eax
lea edi, [ebp - 0x10040]
lea esi, [ebp - 0x20040]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x45b812
sub ebx, eax
je 0x45b828
jmp 0x45b793
or dword [ebp + 8], 0xffffffff
jmp 0x45b954
mov dword [ebp + 8], 2
jmp 0x45b954
test ebx, ebx
jne 0x45b954
jmp 0x45b82d
mov edi, 0x10000
mov eax, dword [ebp - 4]
test eax, eax
je 0x45b94d
shr eax, 0x10
mov dword [ebp - 4], eax
jne 0x45b847
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0xc]
xor eax, eax
sub ecx, dword [ebp - 0x28]
sbb esi, eax
mov eax, dword [ebp - 4]
cdq
push edx
push eax
push esi
push ecx
call fcn.004c5ec0
mov ebx, eax
push 0
mov esi, edx
sub ebx, edi
pop eax
sbb esi, eax
cmp dword [ebp - 4], eax
mov dword [ebp - 0x3c], esi
mov dword [ebp - 8], eax
jle 0x45b945
jmp 0x45b885
mov esi, dword [ebp - 0x3c]
mov edi, 0x10000
call fcn.004712c4
test eax, eax
jne 0x45b926
lea eax, [ebp - 0x18]
push 1
push eax
push ebx
push dword [ebp - 0x20]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x45b92c
lea eax, [ebp - 0x18]
push 1
push eax
push ebx
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x45b92c
lea eax, [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push eax
lea eax, [ebp - 0x20040]
push edi
push eax
push dword [ebp - 0x20]
call esi
test eax, eax
je 0x45b93e
lea eax, [ebp - 0xc]
push 0
push eax
lea eax, [ebp - 0x10040]
push edi
push eax
push dword [ebp - 0x14]
call esi
test eax, eax
je 0x45b93e
mov ecx, dword [ebp - 0x28]
cmp ecx, edi
jb 0x45b935
lea edi, [ebp - 0x10040]
lea esi, [ebp - 0x20040]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x45b935
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jl 0x45b87d
jmp 0x45b945
or dword [ebp + 8], 0xffffffff
jmp 0x45b945
mov dword [ebp + 8], 0x28
jmp 0x45b945
mov dword [ebp + 8], 2
jmp 0x45b945
mov dword [ebp + 8], 0x1e
mov eax, dword [ebp - 4]
cmp dword [ebp - 8], eax
jne 0x45b954
mov dword [ebp + 8], 1
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 8], 0
jne 0x45b97c
mov eax, dword [ebp - 0x34]
push 0x10
mov ecx, dword [eax + 4]
call fcn.0047a2e3
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x24]
call fcn.004010b4
lea ecx, [ebp - 0x2c]
call fcn.004010b4
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4