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

Disassembly:
push 0xffffffffffffffff
push 0xad3bd0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov eax, dword [0xaf97a0]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov esi, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
xor edi, edi
mov dword [esp + 0x4c], edi
mov ecx, dword [eax + 4]
push esi
push ecx
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x27], 0
call fcn.00a49db0
add esp, 0xc
mov byte [esp + 0x4c], 1
mov ecx, dword [esp + 0x34]
cmp ecx, edi
jne 0xa4f8cd
xor edx, edx
jmp 0xa4f8d6
mov edx, dword [esp + 0x3c]
sub edx, ecx
sar edx, 2
mov eax, dword [esp + 0x38]
mov ebx, eax
sub ebx, ecx
sar ebx, 2
cmp ebx, edx
jae 0xa4f8f0
mov dword [eax], esi
add eax, 4
mov dword [esp + 0x38], eax
jmp 0xa4f914
mov esi, eax
cmp ecx, eax
jbe 0xa4f8fb
call fcn.00a7c884
mov eax, dword [esp + 0x28]
push esi
push eax
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea eax, [esp + 0x38]
call fcn.00a2c730
mov esi, dword [esp + 0x70]
mov ebp, dword [esp + 0x34]
mov ecx, esi
sub ecx, dword [esp + 0x6c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
xor ebx, ebx
add eax, edx
je 0xa4fa49
mov dword [esp + 0x1c], edi
mov ecx, dword [esp + 0x38]
sub ecx, ebp
sar ecx, 2
mov byte [esp + 0x58], 0
test ecx, ecx
jbe 0xa4f9fc
jmp 0xa4f960
sub esi, dword [esp + 0x6c]
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0xa4f980
call fcn.00a7c884
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x1c]
sub esp, 0x1c
lea eax, [ecx + edx]
mov ecx, esp
mov dword [esp + 0x3c], esp
xor edx, edx
push 0xffffffffffffffff
push edx
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], 0
push eax
mov word [ecx + 4], dx
call fcn.00a11910
mov eax, dword [esp + 0x54]
sub eax, dword [esp + 0x50]
sar eax, 2
cmp edi, eax
jb 0xa4f9c5
call fcn.00a7c884
mov ecx, dword [esp + 0x50]
mov edx, dword [ecx + edi*4]
mov eax, dword [esp + 0x70]
push edx
push eax
call fcn.00a4fc60
mov ebp, dword [esp + 0x34]
mov esi, dword [esp + 0x70]
test al, al
jne 0xa4f9f7
mov ecx, dword [esp + 0x38]
sub ecx, ebp
inc edi
sar ecx, 2
cmp edi, ecx
jb 0xa4f960
jmp 0xa4f9fc
mov byte [esp + 0x58], 1
cmp byte [esp + 0x5c], 0
je 0xa4fa15
cmp byte [esp + 0x58], 0
je 0xa4fac4
mov byte [esp + 0x1b], 1
jmp 0xa4fa20
cmp byte [esp + 0x58], 0
jne 0xa4fb4d
add dword [esp + 0x1c], 0x1c
mov ecx, esi
sub ecx, dword [esp + 0x6c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc ebx
add eax, edx
xor edi, edi
cmp ebx, eax
jb 0xa4f941
cmp byte [esp + 0x5c], 0
je 0xa4fbdc
cmp ebp, edi
je 0xa4fa61
push ebp
call fcn.00a7ac28
add esp, 4
mov edx, dword [esp + 0x28]
push edx
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
call fcn.00a7ac28
mov eax, dword [esp + 0x70]
add esp, 4
cmp eax, edi
je 0xa4faa2
mov ecx, dword [esp + 0x5c]
mov edi, dword [esp + 0x70]
push ecx
call fcn.00a145e0
mov edx, dword [esp + 0x70]
add esp, 4
push edx
call fcn.00a7ac28
add esp, 4
xor edi, edi
mov eax, dword [esp + 0x60]
push eax
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], edi
call fcn.00a7ac28
mov al, byte [esp + 0x1f]
add esp, 4
jmp 0xa4fc45
xor ebx, ebx
cmp ebp, ebx
je 0xa4fad3
push ebp
call fcn.00a7ac28
add esp, 4
mov ecx, dword [esp + 0x28]
push ecx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call fcn.00a7ac28
mov eax, dword [esp + 0x70]
add esp, 4
cmp eax, ebx
je 0xa4fb37
mov edi, dword [esp + 0x70]
cmp eax, edi
je 0xa4fb2e
lea esi, [eax + 0x18]
nop
cmp dword [esi], 8
jb 0xa4fb11
mov edx, dword [esi - 0x14]
push edx
call fcn.00a7ac28
add esp, 4
xor eax, eax
mov dword [esi], 7
mov dword [esi - 4], ebx
mov word [esi - 0x14], ax
add esi, 0x1c
lea ecx, [esi - 0x18]
cmp ecx, edi
jne 0xa4fb00
mov eax, dword [esp + 0x6c]
push eax
call fcn.00a7ac28
add esp, 4
mov edx, dword [esp + 0x60]
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
push edx
jmp 0xa4fc3b
xor ebx, ebx
cmp ebp, ebx
je 0xa4fb5c
push ebp
call fcn.00a7ac28
add esp, 4
mov eax, dword [esp + 0x28]
push eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call fcn.00a7ac28
mov eax, dword [esp + 0x70]
add esp, 4
cmp eax, ebx
je 0xa4fbbf
mov edi, dword [esp + 0x70]
cmp eax, edi
je 0xa4fbb6
lea esi, [eax + 0x18]
cmp dword [esi], 8
jb 0xa4fb99
mov ecx, dword [esi - 0x14]
push ecx
call fcn.00a7ac28
add esp, 4
xor edx, edx
mov dword [esi], 7
mov dword [esi - 4], ebx
mov word [esi - 0x14], dx
add esi, 0x1c
lea eax, [esi - 0x18]
cmp eax, edi
jne 0xa4fb88
mov eax, dword [esp + 0x6c]
push eax
call fcn.00a7ac28
add esp, 4
mov ecx, dword [esp + 0x60]
push ecx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
call fcn.00a7ac28
add esp, 4
mov al, 1
jmp 0xa4fc45
cmp ebp, edi
je 0xa4fbe9
push ebp
call fcn.00a7ac28
add esp, 4
mov ecx, dword [esp + 0x28]
push ecx
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
call fcn.00a7ac28
mov eax, dword [esp + 0x70]
add esp, 4
cmp eax, edi
je 0xa4fc2a
mov edx, dword [esp + 0x5c]
mov edi, dword [esp + 0x70]
push edx
call fcn.00a145e0
mov eax, dword [esp + 0x70]
add esp, 4
push eax
call fcn.00a7ac28
add esp, 4
xor edi, edi
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edi
push ecx
call fcn.00a7ac28
add esp, 4
xor al, al
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 0x24