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

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov dword [esp + 0x14], ebp
call fcn.00453779
mov ebx, dword [esp + 0x20]
cmp ebx, ebp
jne 0x4532e3
mov ebx, 0x48302f
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebp
mov edi, pe_nt_image_headers32
push edi
push 3
push ebp
push 1
push 0xc0000000
push ebx
mov dword [0x54ea34], ebp
call esi
cmp eax, 0xffffffff
mov dword [0x54ea28], eax
jne 0x45334e
push ebp
push edi
push 3
push ebp
push 1
mov ebp, 0x80000000
push ebp
push ebx
call esi
cmp eax, 0xffffffff
mov dword [0x54ea28], eax
jne 0x453339
push 0
push edi
push 3
push 0
push 3
push ebp
push ebx
call esi
mov dword [0x54ea28], eax
cmp eax, 0xffffffff
mov dword [0x54ea34], 1
je 0x453539
xor ebp, ebp
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 3
mov edi, eax
pop ebx
cmp edi, ebx
mov dword [0x54ea40], ebp
jl 0x4533b9
push ebp
lea eax, [esp + 0x1c]
push eax
push ebx
lea eax, [esp + 0x1c]
push eax
push dword [0x54ea28]
call esi
cmp dword [esp + 0x18], ebx
jne 0x4533aa
push ebx
lea eax, [esp + 0x14]
push 0x4848a0
push eax
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x4533aa
mov dword [0x54ea40], 0xfde9
sub edi, ebx
jmp 0x4533b9
push ebp
push ebp
push ebp
push dword [0x54ea28]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp edi, ebp
jle 0x4533ef
lea eax, [edi + 2]
push eax
push ebp
push dword [0x517fd0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebp
mov dword [0x54ea38], eax
je 0x45356f
push ebp
lea ecx, [esp + 0x1c]
push ecx
push edi
push eax
push dword [0x54ea28]
call esi
mov edi, dword [esp + 0x18]
mov eax, dword [0x54ea38]
cmp eax, ebp
je 0x45356f
mov word [eax + edi], bp
mov esi, dword [0x54ea38]
lea eax, [esi + edi]
cmp esi, eax
mov dword [0x54ea3c], eax
mov edi, 0x54ea44
mov bl, 0xa
jae 0x45356f
mov al, byte [esi]
cmp al, 0x20
je 0x453427
cmp al, 9
jne 0x45342a
inc esi
jmp 0x45341d
mov al, byte [esi]
cmp al, 0x3b
jne 0x45346a
inc esi
cmp byte [esi], 0x20
jne 0x453437
inc esi
push esi
push 2
push dword [esp + 0x1c]
push edi
call fcn.00453294
add esp, 0x10
mov dword [esp + 0x14], eax
jmp 0x453460
mov al, byte [esi]
cmp al, bl
je 0x45351d
cmp al, 0xd
je 0x45351d
inc esi
cmp byte [esi], 0
jne 0x45344d
jmp 0x45351d
cmp al, 0x5b
jne 0x4534b4
inc esi
push esi
push 1
push dword [esp + 0x1c]
push edi
call fcn.00453294
add esp, 0x10
mov dword [esp + 0x14], eax
jmp 0x453494
mov al, byte [esi]
cmp al, 0x5d
je 0x45349e
cmp al, bl
je 0x453499
cmp al, 0xd
je 0x453499
inc esi
cmp byte [esi], 0
jne 0x453485
cmp byte [esi], 0x5d
jne 0x45351d
mov byte [esi], 0
jmp 0x4534ab
cmp al, bl
je 0x453520
cmp al, 0xd
je 0x453521
inc esi
mov al, byte [esi]
test al, al
jne 0x4534a3
jmp 0x453521
cmp al, bl
je 0x453521
cmp al, 0xd
je 0x453521
mov edx, esi
jmp 0x4534cf
cmp al, 0x3d
je 0x4534d3
cmp al, 0xd
je 0x4534d3
cmp al, bl
je 0x4534d3
inc esi
mov al, byte [esi]
test al, al
jne 0x4534c0
lea eax, [esi - 1]
jmp 0x4534e5
mov cl, byte [eax]
cmp cl, 0x20
je 0x4534e4
cmp cl, 9
jne 0x4534e9
dec eax
cmp eax, edx
ja 0x4534d8
mov byte [eax + 1], 0
inc esi
mov al, byte [esi]
cmp al, 0x20
je 0x4534ed
cmp al, 9
je 0x4534ed
push esi
push edx
push dword [esp + 0x1c]
push edi
call fcn.00453294
add esp, 0x10
mov dword [esp + 0x14], eax
jmp 0x453518
mov al, byte [esi]
cmp al, bl
je 0x45351d
cmp al, 0xd
je 0x45351d
inc esi
cmp byte [esi], 0
jne 0x45350d
mov byte [esi], 0
inc esi
mov al, byte [esi]
cmp al, bl
je 0x453520
cmp al, 0xd
je 0x453520
cmp esi, dword [0x54ea3c]
jb 0x45341d
jmp 0x45356f
xor esi, esi
push ebx
mov dword [0x54ea28], esi
mov dword [0x54ea40], esi
call sub.MSVCRT.dll_strlen
pop ecx
inc eax
push eax
push esi
push dword [0x517fd0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, esi
mov dword [0x54ea2c], eax
je 0x45356f
push ebx
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
mov eax, dword [0x54ea28]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4