Function at 0x4531b4
Capabilities:
Read file on windows

Disassembly:
push ebp
push esp
pop ebp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov esi, eax
cmp byte [esi + 0x14], 0
je 0x45332a
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax]
mov edx, dword [ebp + 8]
add eax, dword [edx - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x21]
add eax, dword [esi + 0x25]
shl eax, 3
add eax, 0x10
mov edx, dword [ebp + 8]
add dword [edx - 8], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [esi + 0x15]
mov dword [eax], edx
mov eax, dword [ebp - 0x10]
mov edx, dword [esi + 0x19]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x10]
mov dx, word [esi + 0x1d]
mov word [eax + 8], dx
mov eax, dword [ebp - 0x10]
mov dx, word [esi + 0x1f]
mov word [eax + 0xa], dx
mov eax, dword [ebp - 0x10]
mov dx, word [esi + 0x21]
mov word [eax + 0xc], dx
mov eax, dword [ebp - 0x10]
mov dx, word [esi + 0x25]
mov word [eax + 0xe], dx
xor eax, eax
mov dword [ebp - 4], eax
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4533e7
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x21]
jae 0x4532c2
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx - 0xc]
or ecx, 0x80000000
mov dword [eax + edx*8 + 0x10], ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax]
mov edx, dword [ebp + 8]
add eax, dword [edx - 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
call fcn.004055c8
mov edx, dword [ebp - 0xc]
mov word [edx], ax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
call fcn.004055c8
push eax
pop edi
or edi, edi
jle 0x4532aa
pushfd
xor ebx, ebx
inc ebx
popfd
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
mov ax, word [eax + ebx*2 - 2]
mov edx, dword [ebp - 0xc]
mov word [edx + ebx*2], ax
inc ebx
dec edi
jne 0x453294
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
call fcn.004055c8
add eax, eax
add eax, 2
mov edx, dword [ebp + 8]
add dword [edx - 0xc], eax
jmp 0x4532d1
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov dword [eax + edx*8 + 0x10], ecx
mov eax, dword [ebp - 8]
cmp byte [eax + 0x14], 0
je 0x4532f2
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx - 8]
or ecx, 0x80000000
mov dword [eax + edx*8 + 0x14], ecx
jmp 0x453302
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx - 8]
mov dword [eax + edx*8 + 0x14], ecx
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 8]
call fcn.004531b4
pop ecx
inc dword [ebp - 4]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x45323e
jmp 0x4533e7
mov eax, dword [ebp + 8]
mov ebx, dword [eax - 4]
mov ebx, dword [ebx]
mov eax, dword [ebp + 8]
add ebx, dword [eax - 8]
mov eax, dword [ebp + 8]
add dword [eax - 8], 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov edx, dword [ebp + 8]
add eax, dword [edx - 0x14]
mov dword [ebx], eax
mov eax, dword [esi + 0x19]
mov dword [ebx + 4], eax
mov eax, dword [esi + 0x21]
mov dword [ebx + 8], eax
mov eax, dword [esi + 0x25]
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x15]
or eax, eax
je 0x45337e
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx]
mov ecx, dword [ebp + 8]
add edx, dword [ecx - 0x10]
mov ecx, dword [ebx + 4]
call fcn.00402c14
jmp 0x4533d4
cmp dword [esi + 0x10], 0
je 0x45339f
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov edx, dword [edx]
mov eax, dword [ebp + 8]
add edx, dword [eax - 0x10]
mov ecx, dword [ebx + 4]
mov eax, dword [esi + 0x10]
call fcn.00402c14
jmp 0x4533d4
mov eax, dword [esi + 0x1d]
test eax, eax
je 0x4533d4
push 0
push 0
push 0
push eax
call sub.KERNEL32.DLL_SetFilePointer
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebx + 4]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax]
mov edx, dword [ebp + 8]
add eax, dword [edx - 0x10]
push eax
mov eax, dword [esi + 0x1d]
push eax
call sub.KERNEL32.DLL_ReadFile
mov eax, dword [ebx + 4]
nop
push 4
nop
pop edx
call fcn.00452b6c
mov edx, dword [ebp + 8]
add dword [edx - 0x10], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret