Function at 0x4633ea
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x14], 0x80
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0
mov ecx, dword [ebp + 0x14]
add ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x6c]
cmp ecx, dword [edx + 0x28]
jbe 0x463421
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0x85670a06
xor al, al
jmp 0x46383f
push 0
push 0x80
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004aa4b0
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
and eax, 0x7f
mov ecx, dword [ebp + 0xc]
and ecx, 0
mov edx, dword [ebp - 0x6c]
imul eax, dword [edx + 0x28]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [eax + 0x11c]
jae 0x463492
mov edx, dword [ebp - 0x6c]
mov eax, dword [edx + 0x118]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [eax + ecx*4]
cmp edx, dword [ebp - 0x10]
ja 0x463492
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
jmp 0x46345c
mov edx, dword [ebp - 0x6c]
cmp dword [edx + 0x120], 0xffffffff
je 0x4634c3
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [eax + 0x120]
jb 0x4634c3
mov edx, dword [ebp - 0x6c]
mov eax, dword [edx + 0x120]
add eax, 0x3ff
cmp dword [ebp - 0x10], eax
jb 0x46354c
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x10]
mov dword [ecx + 0x120], edx
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 0x120]
xor edx, edx
mov ecx, 2
call fcn.004aa8c0
add eax, 0x100
adc edx, 0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edx
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x38], edx
push 0
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x6c]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 4]
push ecx
push 0x1000
mov edx, dword [ebp - 0x6c]
add edx, 0x124
push edx
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x46354c
call fcn.00463900
mov edx, dword [ebp + 0x1c]
mov dword [edx], eax
xor al, al
jmp 0x46383f
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x10]
sub ecx, dword [eax + 0x120]
mov edx, dword [ebp - 0x6c]
mov eax, dword [edx + ecx*4 + 0x128]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x10]
sub edx, dword [ecx + 0x120]
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax + edx*4 + 0x124]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x20]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x20]
jae 0x46359f
or ecx, 0xffffffff
sub ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
lea eax, [edx + ecx + 1]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4635b3
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ecx + 0x28]
shl edx, 7
cmp dword [ebp - 0x18], edx
jbe 0x4635c3
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0x85670a0b
xor al, al
jmp 0x46383f
mov ecx, dword [ebp - 0x24]
shl ecx, 0x20
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x10]
sub eax, dword [edx + 0x120]
mov edx, dword [ebp - 0x6c]
add ecx, dword [edx + eax*4 + 0x124]
xor eax, eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x6c]
add ecx, 0x110
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp - 0x70]
mov eax, dword [ebp - 8]
cmp eax, dword [edx + 4]
jb 0x46361a
ja 0x46360a
mov ecx, dword [ebp - 0x70]
mov edx, dword [ebp - 0xc]
cmp edx, dword [ecx]
jb 0x46361a
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0x85670a0b
xor al, al
jmp 0x46383f
mov ecx, dword [ebp - 0x6c]
cmp dword [ecx + 0x1130], 0
je 0x46364b
mov edx, dword [ebp - 0x6c]
add edx, 0x1128
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [eax]
jne 0x46364b
mov edx, dword [ebp - 0x74]
mov eax, dword [ebp - 8]
cmp eax, dword [edx + 4]
je 0x46381d
mov ecx, dword [ebp - 0x6c]
cmp dword [ecx + 0x1130], 0
jne 0x463678
mov edx, dword [ebp - 0x6c]
mov eax, dword [edx + 0x28]
shl eax, 7
push eax
call fcn.004d333d
add esp, 4
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x50]
mov dword [ecx + 0x1130], edx
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x1128], ecx
mov edx, dword [ebp - 8]
mov dword [eax + 0x112c], edx
mov dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax + 0x28]
shl ecx, 7
cmp dword [ebp - 0x18], ecx
jae 0x4636b7
mov edx, dword [ebp - 0x18]
push edx
call fcn.004d333d
add esp, 4
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ecx + 0x1128]
mov dword [ebp - 0x48], edx
mov eax, dword [ecx + 0x112c]
mov dword [ebp - 0x44], eax
push 0
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x40], 0
je 0x4636f1
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x78], edx
jmp 0x4636fd
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax + 0x1130]
mov dword [ebp - 0x78], ecx
push 0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x78]
push ecx
mov edx, dword [ebp - 0x6c]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x463776
cmp dword [ebp - 0x40], 0
je 0x463734
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x58]
push edx
call fcn.004d3366
add esp, 4
mov eax, dword [ebp - 0x6c]
cmp dword [eax + 0x1130], 0
je 0x463765
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ecx + 0x1130]
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x5c]
push eax
call fcn.004d3366
add esp, 4
mov ecx, dword [ebp - 0x6c]
mov dword [ecx + 0x1130], 0
call fcn.00463900
mov edx, dword [ebp + 0x1c]
mov dword [edx], eax
xor al, al
jmp 0x46383f
cmp dword [ebp - 0x40], 0
je 0x46381d
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax + 0x28]
shl ecx, 7
push ecx
mov edx, dword [ebp - 0x6c]
mov eax, dword [edx + 0x1130]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x40]
push edx
call fcn.0046fd39
add esp, 0x10
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax + 0x28]
shl ecx, 7
cmp ecx, dword [ebp - 0x4c]
je 0x46380b
cmp dword [ebp - 0x40], 0
je 0x4637cd
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x60]
push eax
call fcn.004d3366
add esp, 4
mov ecx, dword [ebp - 0x6c]
cmp dword [ecx + 0x1130], 0
je 0x4637fe
mov edx, dword [ebp - 0x6c]
mov eax, dword [edx + 0x1130]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.004d3366
add esp, 4
mov edx, dword [ebp - 0x6c]
mov dword [edx + 0x1130], 0
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0x85670a0c
xor al, al
jmp 0x46383f
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x68]
push edx
call fcn.004d3366
add esp, 4
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ecx + 0x1130]
add edx, dword [ebp - 0x28]
add edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.004a9290
add esp, 0xc
mov al, 1
mov esp, ebp
pop ebp
ret 0x18