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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x30], 0
xor ebx, ebx
xor edx, edx
push edi
mov dword [esp + 0x3c], ebx
lea edi, [esi + 4]
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0xc], edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x28], edx
test byte [0x6af0b6d3], 2
jne 0x6aee8419
mov eax, dword [ebp + 0xc]
jmp 0x6aeca7c0
test eax, eax
jne 0x6aee8430
test edi, edi
je 0x6aeca7e0
test ebx, ebx
jne 0x6aeca7e0
push edi
call dword [0x6af0c18c]
mov ebx, 1
mov dword [esp + 0x3c], ebx
call dword [0x6af0c1bc]
cmp dword [esi + 0x60], 0
mov dword [esi + 0x94], eax
mov dword [esp + 0x34], 0
jne 0x6aee8447
xor ecx, ecx
mov dword [esp + 0x1c], ecx
mov eax, ecx
and eax, 0x1fff0000
cmp eax, 0xc0000
je 0x6aee8457
test ecx, ecx
js 0x6aee845f
xor eax, eax
mov dword [ebp + 0xc], eax
mov ecx, dword [esi + 0x78]
xor edx, edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], edx
test ecx, ecx
je 0x6aeca955
mov edi, dword [esp + 0x18]
mov dword [esp + 0x14], ecx
test eax, eax
jne 0x6aeca854
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
test eax, eax
js 0x6aee84c3
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x24]
test eax, eax
je 0x6aeca866
lea edx, [eax + 0x14]
mov dword [esp + 0x24], edx
cmp dword [esp + 0x1c], 0
mov eax, ecx
jne 0x6aeca881
mov edi, dword [esp + 0x14]
cmp dword [edi + 4], 2
mov edi, dword [esp + 0x18]
je 0x6aecab13
mov ecx, dword [eax + 0x54]
mov dword [esp + 0x30], ecx
mov dword [eax + 0x54], 0
test edx, edx
je 0x6aeca8a2
mov eax, dword [edx + 0x18]
cmp eax, dword [esi + 0x78]
jne 0x6aeca8a2
mov dword [edx + 0x18], 0
mov eax, dword [esi + 0x78]
mov dword [esp + 0x24], eax
mov ecx, dword [eax + 4]
cmp ecx, 2
je 0x6aeca8b6
cmp ecx, 1
jne 0x6aeca8c6
dec dword [edx + 0x24]
push edx
call fcn.6aed0b75
mov eax, dword [esi + 0x78]
mov dword [esp + 0x24], eax
lea ecx, [eax + 0x10]
mov dword [esp + 0x14], 0
mov eax, dword [eax + 4]
mov dword [esp + 0x2c], ecx
cmp eax, 2
je 0x6aeca8e2
cmp eax, 1
jne 0x6aeca92d
push ecx
call dword [0x6af0c198]
mov eax, dword [esp + 0x24]
cmp dword [eax + 0x5c], 0
jne 0x6aeca902
mov dword [eax + 0x5c], 1
mov dword [esp + 0x14], 1
push dword [esp + 0x2c]
call dword [0x6af0c1a0]
cmp dword [esp + 0x14], 0
je 0x6aeca92d
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov dword [eax + 0x1c], ecx
lock inc dword [eax]
mov eax, dword [eax + 0x20]
push dword [eax + 4]
call dword [0x6af0c1f4]
mov ecx, dword [esi + 0x78]
or eax, 0xffffffff
mov dword [esp + 0x2c], ecx
lock xadd dword [ecx], eax
dec eax
je 0x6aecaaf5
mov eax, dword [esp + 0x30]
mov dword [esi + 0x78], 0
test eax, eax
jne 0x6aee8518
lea eax, [esi + 0x68]
jmp 0x6aeca960
mov ecx, dword [eax]
cmp ecx, eax
je 0x6aecaacd
cmp dword [ecx + 4], eax
jne 0x6aee8611
mov edx, dword [ecx]
cmp dword [edx + 4], ecx
jne 0x6aee8611
mov dword [eax], edx
mov dword [edx + 4], eax
lea eax, [ecx - 8]
mov dword [ecx + 4], ecx
mov dword [ecx], ecx
mov ecx, esi
mov dword [esi + 0x78], eax
call fcn.6aecdb8a
cmp dword [esi + 0x78], 0
lea eax, [esi + 0x68]
je 0x6aeca960
mov ecx, dword [esi + 0x10c]
test ecx, ecx
jne 0x6aee854c
test edi, edi
je 0x6aeca9c1
test ebx, ebx
je 0x6aeca9c1
push edi
call dword [0x6af0c174]
xor ebx, ebx
mov dword [esp + 0x3c], ebx
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x6aee8573
mov ecx, dword [esi + 0x78]
xor edx, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], edx
mov eax, dword [ecx + 4]
cmp eax, 1
je 0x6aecab28
cmp eax, 2
jne 0x6aecaa13
lea eax, [esp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.6aebb976
test eax, eax
js 0x6aee859a
mov ecx, dword [esp + 0xc]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], ecx
test ecx, ecx
js 0x6aeca7c0
lock inc dword [esi]
mov eax, dword [esi + 0x78]
mov edx, dword [esi + 0x1c]
mov dword [esp + 0x1c], edx
mov ecx, dword [eax + 0x4c]
mov eax, dword [eax + 0x48]
lea edi, [edx + 0x4c]
mov dword [edx + 0x50], eax
lea eax, [edx + 4]
mov dword [esp + 0x2c], edi
mov dword [edx + 0x4c], 0
mov dword [edx + 0x54], ecx
mov dword [edx + 0x58], fcn.6aeca740
mov dword [edx + 0x5c], esi
mov dword [esp + 0x30], eax
lock inc dword [eax]
mov eax, dword [edx + 0x30]
mov edi, dword [esp + 0x18]
push edx
push fcn.6aecdc00
mov ecx, dword [eax + 0x28]
mov eax, dword [eax + 0x30]
cmp eax, fcn.6aecab50
push 0
mov dword [esp + 0x30], eax
lea eax, [edx + 0x4c]
push 1
push eax
push ecx
jne 0x6aee85ae
call fcn.6aecab50
mov ecx, eax
mov dword [ebp + 0xc], ecx
cmp ecx, 0x3e5
jne 0x6aee85c1
mov eax, 0x800703e5
mov dword [esp + 0x34], 0xb38
mov dword [esp + 0x28], eax
mov esi, eax
cmp dword [esp + 0x20], 0
jne 0x6aee8618
test byte [0x6af0b6d3], 2
jne 0x6aee862a
test ebx, ebx
jne 0x6aee863f
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [esi + 0x7c], 0
xor eax, eax
xor esi, esi
mov dword [esp + 0x28], eax
test edi, edi
je 0x6aecaaef
test ebx, ebx
je 0x6aecaaef
push edi
call dword [0x6af0c174]
xor ebx, ebx
xor eax, eax
mov dword [esp + 0x3c], ebx
jmp 0x6aecaaa2
test ecx, ecx
je 0x6aeca942
call fcn.6aede23a
push dword [esp + 0x2c]
call fcn.6aee2eb1
add esp, 4
jmp 0x6aeca942
mov eax, ecx
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x40], 0
je 0x6aeca881
jmp 0x6aee84de
lea eax, [esp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.6aebb588
test eax, eax
jns 0x6aecaa00
jmp 0x6aee859a
mov eax, dword [ebp + 0xc]
mov ecx, 0x4a
push eax
push dword [ebp + 8]
push esi
call 0x6af0850b
jmp 0x6aeca7b8
jle 0x6aee843a
movzx eax, ax
or eax, 0x80070000
push eax
mov ecx, esi
call fcn.6aebe04e
jmp 0x6aeca7c8
mov ecx, dword [esi + 0x64]
mov dword [esp + 0x34], 0x524
jmp 0x6aeca800
movzx eax, cx
jmp 0x6aeca820
mov eax, ecx
and eax, 0x1fff0000
cmp eax, 0x70000
je 0x6aee84ab
mov eax, ecx
test ecx, 0x10000000
je 0x6aeca820
and eax, 0xefffffff
push eax
call dword [0x6af0c300]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x6aee8497
mov eax, dword [esp + 0x1c]
jmp 0x6aeca820
cmp eax, 0x13d
jne 0x6aeca823
mov eax, dword [esp + 0x1c]
jmp 0x6aeca820
movzx eax, cx
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x6aeca823
mov eax, 0x13d
jmp 0x6aeca820
mov ecx, eax
call fcn.6aec4433
mov ecx, dword [esi + 0x78]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ecx
jmp 0x6aeca854
cmp dword [edx + 8], 3
je 0x6aee84fc
mov ecx, dword [edx + 0xc]
call fcn.6aec4433
mov edx, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x78]
jmp 0x6aeca881
push edx
call fcn.6aed0b75
push dword [esi + 0x78]
mov ecx, esi
call fcn.6aeb99f5
mov dword [esi + 0x78], 0
jmp 0x6aeca955
push eax
mov ecx, esi
call fcn.6aecdcd7
mov ecx, eax
call fcn.6aec4433
mov dword [ebp + 0xc], eax
test eax, eax
je 0x6aeca955
lea ecx, [esp + 0x38]
call fcn.6aebe32a
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x18], edi
jmp 0x6aeca7b8
mov eax, dword [esi + 0x108]
mov dword [esp + 0x20], eax
mov dword [esi + 0x108], 0
mov dword [esp + 0x28], ecx
mov dword [esi + 0x10c], 0
jmp 0x6aeca9ac
push eax
lea eax, [esp + 0x24]
mov ecx, esi
push eax
call fcn.6aefc6a9
xor ecx, ecx
mov dword [esp + 0x28], ecx
test eax, eax
jns 0x6aeca9cd
mov ecx, eax
call fcn.6aec4433
jmp 0x6aeca7c0
mov ecx, eax
call fcn.6aec4433
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x10], ecx
jmp 0x6aeca7c0
mov ecx, dword [esp + 0x3c]
call dword [0x6af0c358]
call dword [esp + 0x3c]
jmp 0x6aecaa7e
mov edx, dword [esp + 0x30]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x6aee85da
mov ecx, dword [esp + 0x1c]
call fcn.6aed87c7
mov ecx, dword [ebp + 0xc]
mov edi, dword [esp + 0x2c]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov dword [eax + 0x58], 0
mov dword [eax + 0x5c], 0
cmp ecx, 0x3e5
je 0x6aecaa8f
mov ecx, esi
call fcn.6aebae0f
jmp 0x6aeca7b8
mov ecx, 3
int 0x29
lea ecx, [esp + 0x20]
call fcn.6aebd873
mov eax, dword [esp + 0x28]
jmp 0x6aecaaad
push eax
mov edx, 0x6aeb2ecc
mov ecx, 0x4b
call fcn.6af08166
jmp 0x6aecaaba
lea ecx, [esp + 0x38]
call fcn.6aebe32a
jmp 0x6aecaac2