Function at 0x460820
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51d55f
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x56e754]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x64], esi
mov eax, dword [ebp + 8]
push 0
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x58]
push eax
push 1
lea eax, [ebp - 0x5c]
mov byte [ebp - 0x45], 1
push eax
push dword [esi + 0x20]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x5c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x58], 1
je 0x460894
mov dword [0x585b54], 0x21
xor al, al
jmp 0x460b2f
push 0x40
call fcn.004ca790
add esp, 4
mov dword [ebp - 0x54], eax
mov ecx, eax
push dword [ebp - 0x5c]
call fcn.00473b10
mov ebx, eax
mov ecx, ebx
mov dword [ebp - 0x50], ebx
call fcn.00473ba0
mov edi, dword [esi + 0x1c]
mov edi, dword [edi]
mov esi, dword [edi]
cmp esi, edi
je 0x460af5
mov ebx, dword [esi + 0x14]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x68], ebx
lea eax, [ebx + 0x18]
push eax
call fcn.0041a7e0
mov dword [ebp - 4], 0
mov eax, dword [ebx + 0x58]
sub eax, 1
jne 0x460a9a
push 0xc
call fcn.004ca790
mov dword [ebp - 0x78], eax
mov byte [ebp - 4], 1
mov ecx, eax
push dword [ebx + 0x50]
call fcn.00460da0
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 0
test eax, eax
je 0x460b4d
mov ecx, dword [ebx + 0x5c]
sub ecx, 0
je 0x4609c4
sub ecx, 1
jne 0x460a5e
push 0xc
call fcn.004ca790
mov ecx, eax
add esp, 4
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x60], ecx
push 0x1c
mov eax, dword [eax + 0x20]
mov dword [ecx + 4], eax
mov dword [ecx], 0
mov dword [ecx + 8], 0
call fcn.004ca790
mov ebx, eax
add esp, 4
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x70], ebx
push 0
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [ebp - 0x68]
sub ecx, edx
mov dword [ebx + 4], edx
mov edx, dword [ebp - 0x60]
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx], 0
push dword [eax + 0x54]
push dword [eax + 0x50]
push 0x425a10
push ebx
push ecx
mov ecx, dword [ebp - 0x50]
call fcn.00474180
push 0x1c
push ebx
call fcn.004ca782
push 0xc
push dword [ebp - 0x60]
call fcn.004ca782
add esp, 0x28
jmp 0x460a5e
push 0xc
call fcn.004ca790
mov ecx, eax
add esp, 4
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x54], ecx
push 0x1c
mov eax, dword [eax + 0x20]
mov dword [ecx + 4], eax
mov dword [ecx], 0
mov dword [ecx + 8], 0
call fcn.004ca790
mov ebx, eax
add esp, 4
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x70], ebx
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [ebp - 0x68]
sub ecx, edx
mov dword [ebx + 8], ecx
mov ecx, dword [ebp - 0x50]
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 4], edx
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx], 0
push dword [eax + 0x54]
push dword [eax + 0x50]
push 0x425a10
push ebx
push 0x425830
push dword [ebp - 0x54]
call fcn.00473c70
push 0x1c
push ebx
call fcn.004ca782
push 0xc
push dword [ebp - 0x54]
call fcn.004ca782
add esp, 0x10
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x44]
call fcn.0041a7e0
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x6c]
lea eax, [ebp - 0x44]
push eax
mov byte [ebp - 4], 2
call fcn.00460ed0
push eax
add eax, 0x10
push eax
push ecx
mov ecx, dword [ebp - 0x6c]
lea eax, [ebp - 0x80]
push eax
call fcn.00460f30
lea ecx, [ebp - 0x44]
call fcn.0041b400
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.0041b400
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x460ad4
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x460ad0
nop dword [eax + eax]
cmp esi, dword [eax + 8]
jne 0x460ad0
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x460ac0
mov esi, eax
jmp 0x460aea
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x460aea
nop
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x460ae0
cmp esi, edi
jne 0x4608c6
mov ebx, dword [ebp - 0x50]
mov ecx, dword [ebx + 0x18]
test ecx, ecx
je 0x460b01
call fcn.00474830
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x460b11
push eax
call fcn.004ef010
add esp, 4
mov eax, dword [ebx + 8]
test eax, eax
je 0x460b21
push eax
call fcn.004ef010
add esp, 4
push 0x40
push ebx
call fcn.004ca782
add esp, 8
mov al, byte [ebp - 0x45]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ca771
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x28]
mov dword [0x585b54], 0x21
mov byte [ebp - 0x45], 0
call fcn.0041b400
jmp 0x460b2c