Function at 0x5aa260
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
push ebx
push esi
push edi
mov edi, eax
xor ebx, ebx
cmp byte [edi + 0x174], bl
je 0x5aa2d9
mov ecx, dword [edi + 0x164]
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x18]
push eax
push ecx
mov byte [edi + 0x174], bl
mov dword [esp + 0x20], ebx
call dword [0x6109c0]
mov ecx, dword [edi + 0xfc]
cmp ecx, ebx
je 0x5aa2d9
mov esi, dword [esp + 0x18]
mov edx, dword [ecx]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [esp + 0x2c]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x30]
mov dword [eax + 8], esi
mov esi, dword [esp + 0x34]
mov dword [eax + 0xc], esi
mov eax, dword [edx + 0xbc]
call eax
mov eax, dword [edi + 0x16c]
cmp eax, ebx
je 0x5aa2ea
push eax
call dword [0x6100f0]
mov eax, dword [edi + 0x170]
cmp eax, ebx
je 0x5aa2fb
push eax
call dword [0x6100e8]
cmp byte [edi + 0x190], 0
mov dword [edi + 0x16c], ebx
mov dword [edi + 0x170], ebx
je 0x5aa3a7
cmp byte [edi + 0x174], 0
mov byte [edi + 0x190], 0
je 0x5aa334
mov ecx, edi
mov byte [edi + 0x190], 1
call fcn.005aa6c0
jmp 0x5aa3a7
mov ecx, dword [edi + 0xa8]
xor eax, eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], ecx
mov ecx, dword [edi + 0xfc]
push 0x80000003
lea eax, [esp + 0x60]
mov byte [esp + 0x68], 1
mov edx, dword [ecx]
mov edx, dword [edx + 0x34]
push eax
push 0x5aa6f0
call edx
cmp eax, ebx
jne 0x5aa3a0
mov ecx, dword [edi + 0xfc]
xor eax, eax
mov dword [esp + 0x20], eax
push 0x80000003
mov dword [esp + 0x20], eax
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x24], 1
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
push edx
push 0x5aa6f0
call eax
cmp eax, ebx
je 0x5aa3a7
mov esi, eax
call fcn.005a6f90
cmp byte [edi + 0x1d], 0
je 0x5aa3d7
mov ecx, dword [edi + 0xfc]
lea edx, [esp + 0x18]
push edx
mov esi, edi
mov byte [edi + 0x1d], 0
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call fcn.005a7d10
cmp byte [edi + 0xb8], 0
je 0x5aa462
mov ecx, dword [edi + 0xfc]
cmp ecx, ebx
je 0x5aa462
push 0x80000001
mov byte [edi + 0xb8], 0
mov eax, dword [ecx]
mov edx, dword [eax + 0x34]
push ebx
push 0x5aa750
call edx
mov esi, eax
cmp esi, ebx
je 0x5aa462
lea ecx, [ecx]
mov ebx, dword [esi]
mov eax, dword [ebx + 0xb8]
mov ecx, esi
call eax
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov edx, dword [ebx + 0xbc]
mov dword [ecx + 0xc], eax
mov ecx, esi
call edx
mov ecx, dword [edi + 0xfc]
mov eax, dword [ecx]
mov edx, dword [eax + 0x34]
push 0x80000001
push 0
push 0x5aa750
call edx
mov esi, eax
test esi, esi
jne 0x5aa410
xor ebx, ebx
cmp dword [edi + 0x170], ebx
jne 0x5aa54a
mov ecx, dword [edi + 0x164]
lea eax, [esp + 0x18]
push eax
push ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
call dword [0x6109c0]
cmp dword [esp + 0x18], ebx
jne 0x5aa4b3
cmp dword [esp + 0x20], ebx
jne 0x5aa4b3
cmp dword [esp + 0x1c], ebx
jne 0x5aa4b3
cmp dword [esp + 0x24], ebx
jne 0x5aa4b3
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [edi + 0x168]
push edx
call dword [0x6100f8]
mov ecx, dword [esp + 0x24]
sub ecx, dword [esp + 0x1c]
mov dword [edi + 0x16c], eax
xor eax, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], eax
push ebx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
push ebx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x44], eax
push ebx
lea eax, [esp + 0x44]
push eax
push ebx
mov dword [esp + 0x4c], 0x28
mov dword [esp + 0x54], ecx
mov word [esp + 0x58], 1
mov word [esp + 0x5a], 0x20
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x28], ebx
call dword [0x6100f4]
cmp dword [esp + 0x10], ebx
mov dword [edi + 0x170], eax
je 0x5aa4a8
mov eax, dword [ebp + 8]
cmp eax, ebx
jl 0x5aa556
cmp eax, 0x64
jle 0x5aa55d
mov dword [ebp + 8], 0x64
fild dword [ebp + 8]
lea edx, [esp + 0x70]
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
fmul qword [str.ffffff]
or eax, 0xc00
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0x164]
push edx
fldcw word [esp + 0x10]
push eax
mov byte [esp + 0x1c], 0
mov byte [esp + 0x1d], 0
mov byte [esp + 0x1f], 1
fistp dword [esp + 0x14]
mov cl, byte [esp + 0x14]
mov byte [esp + 0x1e], cl
fldcw word [esp + 0x18]
call dword [0x6109c0]
mov edx, dword [edi + 0x164]
lea ecx, [esp + 0x90]
push ecx
push edx
call dword [0x61099c]
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x78]
sub edx, dword [esp + 0x70]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x7c]
sub eax, dword [esp + 0x74]
mov dword [esp + 0x6c], ecx
mov ecx, dword [edi + 0x164]
push 0xffffffffffffffec
push ecx
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
call dword [0x610828]
test eax, 0x80000
jne 0x5aa62f
mov edx, dword [edi + 0x164]
xor eax, 0x80000
push eax
push 0xffffffffffffffec
push edx
call dword [0x610824]
mov eax, dword [edi + 0x170]
mov ecx, dword [edi + 0x16c]
mov esi, dword [0x6100ec]
push eax
push ecx
call esi
mov ecx, dword [edi + 0xfc]
cmp ecx, ebx
mov dword [esp + 0xc], eax
je 0x5aa669
mov edx, dword [ecx]
mov edx, dword [edx + 0x9c]
lea eax, [esp + 0x70]
push eax
mov eax, dword [edi + 0x16c]
push eax
call edx
mov edx, dword [edi + 0x16c]
push 2
lea eax, [esp + 0x18]
push eax
push ebx
lea ecx, [esp + 0x94]
push ecx
push edx
mov edx, dword [edi + 0x168]
lea eax, [esp + 0x94]
push eax
mov eax, dword [edi + 0x164]
lea ecx, [esp + 0x80]
push ecx
push edx
push eax
call dword [0x61090c]
mov ecx, dword [esp + 0xc]
mov edx, dword [edi + 0x16c]
push ecx
push edx
mov ebx, eax
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4