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

Disassembly:
mov eax, 0x45362686
call fcn.4534228c
sub esp, 0x60
push ebx
push esi
xor esi, esi
push edi
mov eax, dword [ebp + 0x10]
push esi
push 0x8000000
push 3
push esi
push 1
push 0x80000000
mov ebx, ecx
push dword [ebp + 8]
mov dword [ebx + 0x4b0], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x4531afa8
push dword [ebp + 0xc]
mov ecx, ebx
call fcn.45317c09
push eax
call sym.HHA.dll_Ordinal_23
mov edi, eax
mov dword [ebp + 0xc], edi
push edi
mov dword [ebp - 4], esi
call fcn.4531c725
push 0x110
call fcn.45342660
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, esi
mov byte [ebp - 4], 1
je 0x4531ad1f
push dword [ebx + 0x4e0]
mov ecx, eax
call fcn.45322bf1
jmp 0x4531ad21
xor eax, eax
and byte [ebp - 4], 0
push edi
mov ecx, eax
mov dword [ebx + 0x42c], eax
call fcn.45322c35
test eax, eax
jl 0x4531af28
push edi
lea esi, [ebx + 0x800]
call sym.HHA.dll_Ordinal_23
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x4531ad56
push eax
call fcn.45341e40
pop ecx
push dword [ebp + 0xc]
mov dword [esi], edi
call sym.HHA.dll_Ordinal_318
push eax
mov dword [ebx + 0x40c], eax
call dword [ebx + 0x210]
or dword [ebx + 0x410], 0xffffffff
xor edi, edi
push edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [ebp - 0x1c]
add dword [ebx + 0x400], esi
lea eax, [esi + 0x5dc1]
push eax
call sym.HHA.dll_Ordinal_27
lea eax, [ebp - 0x14]
push edi
push eax
push esi
push dword [ebp - 0x1c]
mov byte [ebp - 4], 2
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], esi
jne 0x4531af63
mov eax, dword [ebp - 0x1c]
and byte [eax + esi], 0
cmp dword [ebp + 0x14], edi
je 0x4531aee7
push 0x45366648
push dword [ebp + 8]
call sym.HHA.dll_Ordinal_1
test eax, eax
je 0x4531aee7
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
mov dword [ebx + 0x3d4], eax
or ecx, 0xffffffff
xor eax, eax
mov dword [ebx + 0x3d8], esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, ecx
cmp eax, esi
je 0x4531ae45
mov ecx, dword [ebp - 0x18]
lea edi, [eax + ecx]
mov ecx, dword [ebx + 0x3d8]
sub ecx, eax
inc ecx
lea esi, [edi + 1]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x18]
dec dword [ebx + 0x3d8]
or ecx, 0xffffffff
mov edx, dword [ebx + 0x3d8]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, ecx
cmp eax, edx
jne 0x4531ae06
xor esi, esi
cmp dword [ebx + 0x4b0], esi
je 0x4531ae8f
cmp dword [ebx + 0x4d8], esi
je 0x4531ae8f
mov eax, dword [ebx + 0x48c]
mov edi, dword [ebx + 0x4ac]
push esi
push edi
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x2c]
mov esi, dword [ebx + 0x494]
push 0
push edi
push 1
mov eax, dword [esi]
push esi
call dword [eax + 0x2c]
mov eax, dword [ebx + 0x488]
push esi
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x4531ae9f
mov ecx, dword [ebx + 0x4d0]
call fcn.453205a7
push dword [ebp + 8]
lea ecx, [ebp - 0x6c]
push dword [ebp - 0x18]
push ebx
call fcn.4531e5ac
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 3
call fcn.4531f925
cmp dword [ebp + 0x10], esi
je 0x4531aed7
cmp dword [ebx + 0x428], esi
je 0x4531aecc
or eax, 0xffffffff
jmp 0x4531aecf
mov eax, dword [ebp + 0x18]
push eax
mov ecx, ebx
call fcn.4531b79c
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 2
call fcn.4531afac
xor edi, edi
jmp 0x4531aef0
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x3d8], eax
mov esi, dword [ebx + 0x3d8]
mov ecx, dword [ebx + 0x42c]
push esi
push dword [ebp - 0x18]
call fcn.453231ff
cmp eax, esi
je 0x4531af16
push dword [ebx + 0x40c]
push 0x21388
jmp 0x4531af6b
and byte [ebp - 4], 0
cmp dword [ebp - 0x1c], edi
je 0x4531af28
push dword [ebp - 0x1c]
call fcn.45341e40
pop ecx
mov ebx, dword [ebx + 0x42c]
test ebx, ebx
je 0x4531af40
mov ecx, ebx
call fcn.45322c07
push ebx
call fcn.45341eb0
pop ecx
cmp dword [ebp + 0xc], 0
je 0x4531af4f
push dword [ebp + 0xc]
call fcn.45341e40
pop ecx
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x14
push dword [ebp + 8]
push 0x21389
push ebx
call fcn.4531deee
mov ebx, dword [ebx + 0x42c]
add esp, 0xc
cmp ebx, edi
je 0x4531af8c
mov ecx, ebx
call fcn.45322c07
push ebx
call fcn.45341eb0
pop ecx
cmp dword [ebp - 0x1c], edi
je 0x4531af9a
push dword [ebp - 0x1c]
call fcn.45341e40
pop ecx
cmp dword [ebp + 0xc], edi
je 0x4531afa8
push dword [ebp + 0xc]
call fcn.45341e40
pop ecx
xor eax, eax
jmp 0x4531af52