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

Disassembly:
push 0xffffffffffffffff
push 0x5f0c10
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x6656b0]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6656b0]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x7c]
mov eax, dword [esp + 0x74]
mov ebp, dword [esp + 0x78]
mov edi, edx
mov dword [esp + 0x1c], ecx
mov edx, 7
xor ecx, ecx
xor esi, esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x58], ecx
mov word [esp + 0x48], si
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x40], edx
xor edx, edx
mov dword [esp + 0x3c], ecx
mov word [esp + 0x2c], dx
mov byte [esp + 0x6c], 1
mov ecx, eax
lea edx, [ecx + 2]
nop
mov si, word [ecx]
add ecx, 2
test si, si
jne 0x4ab060
sub ecx, edx
sar ecx, 1
push ecx
lea esi, [esp + 0x48]
call fcn.0040f730
mov eax, dword [esp + 0x1c]
movzx ecx, word [esp + 0x80]
mov dword [ebp], 0
mov dword [edi], 0
mov dword [ebx], 0
lea edx, [esp + 0x14]
mov dword [eax], 0
push edx
mov ebx, 1
xor eax, eax
mov edx, esi
mov dword [esp + 0x18], ecx
call fcn.0040a320
mov edi, eax
cmp edi, 0xffffffff
je 0x4ab2dd
or eax, 0xffffffff
xor ebx, ebx
lea esi, [esp + 0x28]
call fcn.0040f280
push ebx
lea eax, [esp + 0x48]
push eax
mov eax, edi
mov ebx, esi
call fcn.004a8db0
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
jae 0x4ab0ec
lea eax, [esp + 0x2c]
push eax
call fcn.005b87db
movzx ecx, word [esp + 0x84]
add esp, 4
lea edx, [esp + 0x18]
mov dword [ebp], eax
lea eax, [edi + 1]
push edx
mov ebx, 1
lea edx, [esp + 0x48]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
call fcn.0040a320
mov ebp, eax
or eax, 0xffffffff
xor ebx, ebx
lea esi, [esp + 0x28]
call fcn.0040f280
mov ebx, esi
cmp ebp, 0xffffffff
je 0x4ab2ae
mov ecx, dword [esp + 0x14]
mov eax, ebp
sub eax, edi
push ecx
lea edx, [esp + 0x48]
dec eax
push edx
call fcn.004a8db0
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
jae 0x4ab15c
lea eax, [esp + 0x2c]
push eax
call fcn.005b87db
mov ecx, dword [esp + 0x24]
movzx edx, word [esp + 0x84]
mov dword [ecx], eax
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], edx
lea eax, [ebp + 1]
push ecx
mov ebx, 1
lea edx, [esp + 0x48]
mov dword [esp + 0x18], eax
call fcn.0040a320
mov edi, eax
or eax, 0xffffffff
xor ebx, ebx
lea esi, [esp + 0x28]
call fcn.0040f280
mov edx, dword [esp + 0x14]
mov ebx, esi
push edx
cmp edi, 0xffffffff
je 0x4ab284
mov eax, edi
sub eax, ebp
lea ecx, [esp + 0x48]
dec eax
push ecx
call fcn.004a8db0
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
jae 0x4ab1cf
lea eax, [esp + 0x2c]
push eax
call fcn.005b87db
mov edx, dword [esp + 0x28]
mov dword [edx], eax
movzx eax, word [esp + 0x84]
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], eax
lea ebp, [edi + 1]
push ecx
mov ebx, 1
mov eax, ebp
lea edx, [esp + 0x48]
call fcn.0040a320
xor ebx, ebx
mov dword [esp + 0x18], eax
lea esi, [esp + 0x28]
cmp eax, 0xffffffff
je 0x4ab24d
or eax, 0xffffffff
call fcn.0040f280
mov eax, dword [esp + 0x18]
sub eax, edi
push ebp
lea edx, [esp + 0x48]
dec eax
push edx
mov ebx, esi
call fcn.004a8db0
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
jae 0x4ab23c
lea eax, [esp + 0x2c]
push eax
call fcn.005b87db
mov ecx, dword [esp + 0x20]
mov dword [ecx], eax
jmp 0x4ab2f5
or eax, 0xffffffff
call fcn.0040f280
push ebp
lea edx, [esp + 0x48]
push edx
or eax, 0xffffffff
lea ebx, [esp + 0x30]
call fcn.004a8db0
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
jae 0x4ab276
lea eax, [esp + 0x2c]
push eax
call fcn.005b87db
mov ecx, dword [esp + 0x20]
mov dword [ecx], eax
jmp 0x4ab2f5
lea eax, [esp + 0x48]
push eax
or eax, 0xffffffff
call fcn.004a8db0
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
jae 0x4ab2a0
lea eax, [esp + 0x2c]
push eax
call fcn.005b87db
mov ecx, dword [esp + 0x28]
mov dword [ecx], eax
jmp 0x4ab2f5
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x48]
push eax
or eax, 0xffffffff
call fcn.004a8db0
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
jae 0x4ab2cf
lea eax, [esp + 0x2c]
push eax
call fcn.005b87db
mov ecx, dword [esp + 0x24]
mov dword [ecx], eax
jmp 0x4ab2f5
cmp dword [esp + 0x5c], 8
mov eax, dword [esp + 0x48]
jae 0x4ab2ec
lea eax, [esp + 0x48]
push eax
call fcn.005b87db
mov dword [ebp], eax
xor ebx, ebx
add esp, 4
mov byte [esp + 0x6c], bl
mov edi, 8
cmp dword [esp + 0x40], edi
jb 0x4ab316
mov edx, dword [esp + 0x2c]
push edx
call fcn.004c4802
add esp, 4
mov esi, 7
xor eax, eax
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], ax
mov dword [esp + 0x6c], 0xffffffff
cmp dword [esp + 0x5c], edi
jb 0x4ab345
mov ecx, dword [esp + 0x48]
push ecx
call fcn.004c4802
add esp, 4
xor edx, edx
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], dx
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.005b7e8e
add esp, 0x5c
ret