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

Disassembly:
push 0xffffffffffffffff
push 0x61c5f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov dword [esp + 0x10], ebp
lea ecx, [esp + 0x70]
mov dword [esp + 0x68], 3
call fcn.00469280
mov ecx, eax
call fcn.004692d0
mov eax, dword [eax]
mov eax, dword [eax - 0xc]
xor ebx, ebx
cmp eax, ebx
je 0x4af738
mov edi, dword [esp + 0x78]
mov esi, dword [esp + 0x7c]
cmp edi, esi
jg 0x4af738
push 0xd
lea ecx, [esp + 0x74]
call fcn.004ab300
push 0x646e48
push 0x6462c4
lea ecx, [esp + 0x78]
call fcn.0041f8f0
mov ecx, dword [esp + 0x80]
cmp dword [ecx - 0xc], ebx
jne 0x4af254
push 0x64651c
lea ecx, [esp + 0x84]
call fcn.00401e30
push 0x2a
lea ecx, [esp + 0x84]
call fcn.00434280
lea ecx, [esp + 0x2c]
call fcn.004a76c0
lea edx, [esp + 0x70]
push edx
lea ecx, [esp + 0x30]
mov byte [esp + 0x6c], 4
call fcn.0041fb20
mov al, byte [esp + 0x74]
lea ecx, [esp + 0x80]
push ecx
lea ecx, [esp + 0x38]
mov byte [esp + 0x34], al
call fcn.00403020
lea edx, [esp + 0x84]
push edx
lea ecx, [esp + 0x3c]
call fcn.00403020
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x40]
call fcn.00403020
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x90]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0xa0]
cmp eax, ebx
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x98]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x9c]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], esi
jge 0x4af306
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x2c]
lea ecx, [ebp + 8]
push eax
call fcn.004abad0
mov esi, eax
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
mov dword [esp + 0x9c], esi
jne 0x4af35f
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ecx
push esi
lea ecx, [esp + 0x20]
mov byte [esp + 0x6c], 5
call fcn.004a9780
lea edx, [esp + 0x14]
push edx
lea ecx, [ebp + 0x18]
jmp 0x4af6fe
add ebp, 0x18
cmp dword [ebp + 4], ebx
ja 0x4af371
push 0x80070057
call fcn.00401470
mov edx, dword [ebp]
mov ecx, dword [esp + 0x7c]
cmp ecx, dword [edx]
jg 0x4af3b7
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ecx
push esi
lea ecx, [esp + 0x20]
mov byte [esp + 0x6c], 6
call fcn.004a9780
push 1
lea eax, [esp + 0x18]
push eax
push ebx
mov ecx, ebp
call fcn.004ac490
jmp 0x4af703
add eax, 0xffffffff
push eax
mov ecx, ebp
call fcn.004e9e80
cmp edi, dword [eax + 4]
jl 0x4af3fc
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ecx
push esi
lea ecx, [esp + 0x20]
mov byte [esp + 0x6c], 7
call fcn.004a9780
lea edx, [esp + 0x14]
push edx
jmp 0x4af6fc
push ebx
mov ecx, ebp
call fcn.004e9e80
cmp edi, dword [eax]
jge 0x4af473
push ebx
mov ecx, ebp
call fcn.004e9e80
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
push esi
lea ecx, [esp + 0x20]
mov byte [esp + 0x6c], 8
call fcn.004a9780
push ebx
mov ecx, ebp
call fcn.004e9e80
mov eax, dword [eax]
push 1
lea ecx, [esp + 0x18]
push ecx
push ebx
mov ecx, ebp
mov dword [esp + 0x84], eax
call fcn.004ac490
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov byte [esp + 0x68], 4
je 0x4af46f
push eax
call fcn.005d9100
add esp, 4
mov edi, dword [esp + 0x78]
mov edx, dword [esp + 0x10]
xor eax, eax
cmp dword [edx + 0x1c], ebx
mov dword [esp + 0x74], eax
jbe 0x4af687
mov dword [esp + 0xa0], ebx
lea ecx, [ecx]
cmp eax, dword [ebp + 4]
jae 0x4af367
mov esi, dword [ebp]
add esi, dword [esp + 0xa0]
mov ecx, dword [esi + 4]
cmp edi, ecx
jge 0x4af660
mov eax, dword [esi]
cmp dword [esp + 0x7c], eax
jle 0x4af680
cmp edi, eax
jle 0x4af51c
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edi
lea eax, [esi + 8]
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x6c], 9
call fcn.004aa150
mov edx, dword [esp + 0x74]
push 1
lea ecx, [esp + 0x18]
push ecx
push edx
mov ecx, ebp
mov dword [esi], edi
call fcn.004ac490
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov byte [esp + 0x68], 4
je 0x4af660
push eax
call fcn.005d9100
add esp, 4
jmp 0x4af660
cmp ecx, dword [esp + 0x7c]
jg 0x4af583
mov eax, dword [esi + 0xc]
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x8c], eax
jl 0x4af57f
jmp 0x4af53b
mov eax, dword [esp + 0x8c]
cmp edi, eax
je 0x4af560
push edi
lea ecx, [esi + 8]
call fcn.004fdf60
mov eax, dword [eax]
mov ecx, dword [esp + 0x10]
push eax
add ecx, 8
call fcn.004a9320
mov ecx, dword [esp + 0x5c]
cmp ecx, dword [eax + 0x30]
jge 0x4af573
mov edx, dword [esp + 0x9c]
push 1
push edx
push edi
lea ecx, [esi + 8]
call fcn.004aa1a0
add edi, 1
cmp edi, dword [esp + 0x8c]
jle 0x4af534
mov edi, dword [esp + 0x78]
mov eax, dword [esi]
mov ecx, dword [esp + 0x7c]
cmp eax, ecx
jge 0x4af660
cmp ecx, dword [esi + 4]
jge 0x4af660
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
lea eax, [esi + 8]
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x6c], 0xa
call fcn.004aa150
mov eax, dword [esi + 0xc]
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x8c], eax
jl 0x4af62d
jmp 0x4af5e7
mov eax, dword [esp + 0x8c]
cmp edi, eax
je 0x4af60d
push edi
lea ecx, [esp + 0x20]
call fcn.004fdf60
mov ecx, dword [eax]
push ecx
mov ecx, dword [esp + 0x14]
add ecx, 8
call fcn.004a9320
mov edx, dword [esp + 0x5c]
cmp edx, dword [eax + 0x30]
jge 0x4af621
mov eax, dword [esp + 0x9c]
push 1
push eax
push edi
lea ecx, [esp + 0x28]
call fcn.004aa1a0
add edi, 1
cmp edi, dword [esp + 0x8c]
jle 0x4af5e0
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x74]
push 1
lea edx, [esp + 0x18]
push edx
mov dword [esi], ecx
push eax
mov ecx, ebp
call fcn.004ac490
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov byte [esp + 0x68], 4
je 0x4af65c
push eax
call fcn.005d9100
add esp, 4
mov edi, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x10]
add dword [esp + 0xa0], 0x18
add eax, 1
cmp eax, dword [ecx + 0x1c]
mov dword [esp + 0x74], eax
jb 0x4af490
mov esi, dword [esp + 0x9c]
mov edx, dword [esp + 0x10]
mov edx, dword [edx + 0x1c]
lea eax, [edx - 1]
cmp eax, dword [ebp + 4]
jb 0x4af6a0
push 0x80070057
call fcn.00401470
mov ecx, dword [ebp]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*8]
mov ecx, dword [esp + 0x7c]
cmp ecx, dword [eax + 4]
jle 0x4af714
lea eax, [edx - 1]
cmp eax, dword [ebp + 4]
jb 0x4af6c4
push 0x80070057
call fcn.00401470
lea edx, [eax + eax*2]
mov eax, dword [ebp]
lea eax, [eax + edx*8]
mov eax, dword [eax + 4]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
push esi
lea ecx, [esp + 0x20]
mov byte [esp + 0x6c], 0xb
call fcn.004a9780
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebp
call fcn.004abb50
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x4af714
push eax
call fcn.005d9100
add esp, 4
lea ecx, [esp + 0x2c]
call fcn.004a7750
mov eax, dword [esp + 0x70]
add eax, 0xfffffff0
mov byte [esp + 0x68], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4af751
mov eax, dword [esp + 0x70]
add eax, 0xfffffff0
mov byte [esp + 0x68], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4af75d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x80]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x68], 1
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4af785
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x84]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x68], bl
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4af7ac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x88]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x68], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4af7d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x60]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x5c
ret 0x34