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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x5ae437
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x5ae436
push esi
push ebx
call fcn.005adf78
test byte [esi + 8], 8
pop ecx
pop ecx
je 0x5ae1a4
movzx eax, word [esi + 0x14]
push eax
push dword [esi + 0x10]
push ebx
call fcn.005b9d3d
add esp, 0xc
jmp 0x5ae1b7
cmp byte [esi + 0x19], 3
jne 0x5ae1b7
push 0x62f80c
push ebx
call fcn.005b490f
pop ecx
pop ecx
test byte [esi + 8], 0x10
je 0x5ae205
test dword [ebx + 0x74], 0x80000
je 0x5ae1eb
cmp byte [esi + 0x19], 3
jne 0x5ae1eb
xor eax, eax
xor ecx, ecx
cmp ax, word [esi + 0x16]
jae 0x5ae1eb
mov eax, dword [esi + 0x4c]
add eax, ecx
or dl, 0xff
sub dl, byte [eax]
inc ecx
mov byte [eax], dl
movzx eax, word [esi + 0x16]
cmp ecx, eax
jl 0x5ae1d6
movzx eax, byte [esi + 0x19]
push eax
movzx eax, word [esi + 0x16]
push eax
lea eax, [esi + 0x50]
push eax
push dword [esi + 0x4c]
push ebx
call fcn.005bb28a
add esp, 0x14
test byte [esi + 8], 0x20
je 0x5ae21d
movzx eax, byte [esi + 0x19]
push eax
lea eax, [esi + 0x5a]
push eax
push ebx
call fcn.005bb3a8
add esp, 0xc
test byte [esi + 8], 0x40
je 0x5ae234
movzx eax, word [esi + 0x14]
push eax
push dword [esi + 0x7c]
push ebx
call fcn.005b9dfb
add esp, 0xc
test dword [esi + 8], 0x100
je 0x5ae251
movzx eax, byte [esi + 0x6c]
push eax
push dword [esi + 0x68]
push dword [esi + 0x64]
push ebx
call fcn.005bb4b5
add esp, 0x10
test dword [esi + 8], 0x400
je 0x5ae291
push dword [esi + 0xb0]
movzx eax, byte [esi + 0xb5]
push dword [esi + 0xac]
push eax
movzx eax, byte [esi + 0xb4]
push eax
push dword [esi + 0xa8]
push dword [esi + 0xa4]
push dword [esi + 0xa0]
push ebx
call fcn.005ba2ed
add esp, 0x20
test dword [esi + 8], 0x4000
je 0x5ae2c1
fld qword [esi + 0xe8]
movzx eax, byte [esi + 0xdc]
sub esp, 0x10
fstp qword [esp + 8]
fld qword [esi + 0xe0]
fstp qword [esp]
push eax
push ebx
call fcn.005bb51a
add esp, 0x18
test byte [esi + 8], 0x80
je 0x5ae2db
movzx eax, byte [esi + 0x78]
push eax
push dword [esi + 0x74]
push dword [esi + 0x70]
push ebx
call fcn.005bb5b0
add esp, 0x10
push edi
mov edi, 0x200
test dword [esi + 8], edi
je 0x5ae2f5
lea eax, [esi + 0x3c]
push eax
push ebx
call fcn.005bb615
or dword [ebx + 0x6c], edi
pop ecx
pop ecx
test dword [esi + 8], 0x2000
je 0x5ae32a
xor edi, edi
cmp dword [esi + 0xd8], edi
jle 0x5ae32a
mov dword [ebp - 4], edi
mov eax, dword [esi + 0xd4]
add eax, dword [ebp - 4]
push eax
push ebx
call fcn.005baf4f
add dword [ebp - 4], 0x10
inc edi
cmp edi, dword [esi + 0xd8]
pop ecx
pop ecx
jl 0x5ae30b
xor edi, edi
cmp dword [esi + 0x30], edi
mov dword [ebp - 4], edi
jle 0x5ae3c5
push 0xfffffffffffffffd
pop ebx
mov eax, dword [esi + 0x38]
mov eax, dword [edi + eax]
test eax, eax
jle 0x5ae365
mov eax, dword [esi + 0x38]
add eax, edi
push dword [eax + 8]
push dword [eax + 0x18]
push dword [eax + 0x14]
push dword [eax + 4]
push dword [eax]
push dword [ebp + 8]
call fcn.005ba187
add esp, 0x18
jmp 0x5ae3aa
jne 0x5ae38d
mov eax, dword [esi + 0x38]
add eax, edi
push dword [eax]
push 0
push dword [eax + 8]
push dword [eax + 4]
push dword [ebp + 8]
call fcn.005ba0a0
mov eax, dword [esi + 0x38]
add esp, 0x14
mov dword [edi + eax], 0xfffffffe
jmp 0x5ae3b0
cmp eax, 0xffffffff
jne 0x5ae3b0
mov eax, dword [esi + 0x38]
add eax, edi
push 0
push dword [eax + 8]
push dword [eax + 4]
push dword [ebp + 8]
call fcn.005ba007
add esp, 0x10
mov eax, dword [esi + 0x38]
mov dword [edi + eax], ebx
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add edi, 0x1c
cmp eax, dword [esi + 0x30]
jl 0x5ae33b
mov ebx, dword [ebp + 8]
mov eax, dword [esi + 0xc0]
test eax, eax
je 0x5ae435
mov edi, dword [esi + 0xbc]
imul eax, eax, 0x14
add eax, edi
jmp 0x5ae431
push edi
push ebx
call fcn.005b3932
pop ecx
pop ecx
cmp eax, 1
je 0x5ae41f
mov cl, byte [edi + 0x10]
test cl, cl
je 0x5ae41f
test cl, 2
je 0x5ae41f
test cl, 4
jne 0x5ae41f
test byte [edi + 3], 0x20
jne 0x5ae40f
cmp eax, 3
je 0x5ae40f
test dword [ebx + 0x70], 0x10000
je 0x5ae41f
push dword [edi + 0xc]
push dword [edi + 8]
push edi
push ebx
call fcn.005ba835
add esp, 0x10
mov eax, dword [esi + 0xc0]
imul eax, eax, 0x14
add edi, 0x14
add eax, dword [esi + 0xbc]
cmp edi, eax
jb 0x5ae3dc
pop edi
pop esi
pop ebx
leave
ret