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

Disassembly:
sub esp, 0x1e0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1f0]
push edi
xor edi, edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], edi
call fcn.003adb80
mov dword [esp + 0x50], eax
mov eax, dword [esi + 0xc0]
add eax, 0xffffffff
cmp eax, 0xf
mov edx, 9
mov ecx, 0xa
ja case.0x3aee77.4
movzx eax, byte [eax + 0x3af6b0]
jmp dword [eax*4 + 0x3af698]
mov dword [esp + 0x54], 0xffffffff
jmp case.0x3aee77.4
mov dword [esp + 0x54], 1
jmp case.0x3aee77.4
mov dword [esp + 0x54], edi
jmp case.0x3aee77.4
mov dword [esp + 0x54], edx
jmp case.0x3aee77.4
mov dword [esp + 0x54], ecx
mov eax, dword [esp + 0x50]
mov esi, eax
and esi, 0x4000000
xor edi, edi
neg esi
sbb esi, esi
mov dword [esp + 0x98], ecx
mov ebp, eax
and ebp, 0x8000000
mov dword [esp + 0x94], edx
neg esi
mov ebx, 1
sub esi, ebx
neg ebp
sbb ebp, ebp
mov dword [esp + 0x60], esi
or esi, 0xffffffff
mov ecx, esi
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xbc], ecx
mov dword [esp + 0xc0], ecx
mov edx, esi
mov dword [esp + 0xf8], edx
mov dword [esp + 0xfc], edx
mov dword [esp + 0x100], edx
mov dword [esp + 0x104], edx
mov dword [esp + 0x108], edx
mov dword [esp + 0xc4], ecx
mov dword [esp + 0x10c], edx
mov dword [esp + 0xc8], ecx
mov dword [esp + 0x110], edx
mov dword [esp + 0xcc], ecx
mov dword [esp + 0x114], edx
mov dword [esp + 0xd0], ecx
mov dword [esp + 0x118], edx
mov dword [esp + 0xd4], ecx
and ebp, 2
and eax, 0x20000
mov dword [esp + 0x11c], edx
mov dword [esp + 0xd8], ecx
add ebp, esi
neg eax
mov dword [esp + 0x120], edx
mov dword [esp + 0xdc], ecx
sbb eax, eax
mov dword [esp + 0x124], edx
mov dword [esp + 0xe0], ecx
and eax, 3
mov dword [esp + 0x128], edx
mov dword [esp + 0xe4], ecx
add eax, esi
mov dword [esp + 0x12c], edx
mov dword [esp + 0xe8], ecx
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], eax
mov eax, 4
mov ebp, 8
mov dword [esp + 0xec], ecx
mov dword [esp + 0x130], edx
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x6c], 3
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], ebx
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], 5
mov dword [esp + 0x88], 6
mov dword [esp + 0x8c], 7
mov dword [esp + 0x90], ebp
mov dword [esp + 0x9c], 0xb
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0xa0], esi
mov dword [esp + 0xa4], esi
mov dword [esp + 0xf4], esi
mov dword [esp + 0xa8], esi
mov dword [esp + 0xf0], ecx
mov dword [esp + 0x134], edx
mov dword [esp + 0x138], edx
mov dword [esp + 0x13c], edx
mov dword [esp + 0x140], edx
mov dword [esp + 0x144], edx
mov dword [esp + 0x148], edx
mov dword [esp + 0x14c], edx
mov dword [esp + 0x150], edx
mov dword [esp + 0x154], edx
mov dword [esp + 0x158], edx
mov dword [esp + 0x15c], edx
mov dword [esp + 0x1c0], eax
mov eax, 0x10
mov dword [esp + 0x160], edx
mov dword [esp + 0x1c8], eax
mov dword [esp + 0x178], eax
mov eax, dword [esp + 0x1f4]
mov ecx, 2
mov dword [esp + 0x164], edx
mov dword [esp + 0x168], edx
mov dword [esp + 0x1ac], ebx
mov dword [esp + 0x1dc], ebx
mov dword [esp + 0x1e4], ebx
lea ebx, [eax + 0x104a0]
push ebx
mov dword [esp + 0x1c0], ecx
mov dword [esp + 0x1b4], ecx
mov dword [esp + 0x1ec], ecx
lea ecx, [eax + 0x1049c]
push ecx
mov dword [esp + 0x174], edx
lea edx, [eax + 0x10498]
push edx
mov dword [esp + 0x1dc], esi
mov dword [esp + 0x1e0], esi
mov dword [esp + 0x1c0], esi
mov dword [esp + 0x1f8], esi
mov dword [esp + 0x194], esi
mov dword [esp + 0x18c], esi
mov dword [esp + 0x190], esi
mov dword [esp + 0x198], esi
mov dword [esp + 0x19c], esi
mov dword [esp + 0x1ac], esi
mov dword [esp + 0x1b0], esi
lea esi, [eax + 0x10490]
push esi
mov dword [esp + 0x1c8], edi
mov dword [esp + 0x1b8], edi
mov dword [esp + 0x1e8], edi
mov dword [esp + 0x1f0], edi
mov dword [esp + 0x1a4], edi
mov dword [esp + 0x1a8], edi
mov dword [esp + 0x180], edi
lea edi, [eax + 0x1048c]
push edi
mov dword [esp + 0x1d8], ebp
mov dword [esp + 0x1b0], ebp
mov dword [esp + 0x188], ebp
lea ebp, [eax + 0x10488]
mov eax, dword [eax]
push ebp
push eax
mov dword [esp + 0x1e8], 0x20
mov dword [esp + 0x198], 0x18
call fcn.00048ec0
cmp dword [ebp], 0
mov esi, eax
jne 0x3af228
mov esi, dword [esp + 0x1f4]
mov ecx, dword [esi]
push ecx
call fcn.00048fa0
and dword [esi + 0x1047c], 0xfffffffe
pop edi
pop esi
pop ebp
mov eax, 0xee00000
pop ebx
add esp, 0x1e0
ret 4
mov ebx, dword [ebx]
add dword [ebx], 1
test esi, esi
mov eax, dword [esp + 0x1f4]
mov dword [eax + 0x10494], 0
je 0x3af2d5
mov edx, dword [eax + 0x10498]
mov dword [edx], 0
add eax, 0x1049c
mov eax, dword [eax]
mov dword [eax], 0
mov ecx, dword [edi]
mov dword [ecx], 0
mov edx, dword [edi]
mov dword [edx], 0
mov edi, dword [esp + 0x50]
mov dword [esp + 0x20], 0
or edx, 0xffffffff
mov edi, edi
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + eax*4 + 0x58]
cmp ecx, edx
mov eax, dword [esp + ebx*4 + 0x60]
je 0x3af5a1
cmp eax, edx
je 0x3af5a1
test ecx, ecx
jne 0x3af333
sub eax, ecx
je 0x3af32b
sub eax, 1
je 0x3af323
sub eax, 1
je 0x3af31b
test edi, 0x4020000
jne 0x3af5a1
test edi, 0x8000000
je 0x3af34e
jmp 0x3af5a1
push 0x6d74476e
push 0x60c00
call fcn.00048930
test eax, eax
mov dword [esp + 0x10], eax
je 0x3af216
mov edx, dword [edi]
mov ecx, dword [edx]
lea edx, [ecx + ecx*2]
add edx, edx
add edx, edx
sub edx, ecx
add edx, edx
add edx, edx
sub edx, ecx
add edx, edx
add edx, edx
mov dword [esp + 0x4c], ecx
mov ecx, dword [ebp]
push edx
push ecx
push eax
call fcn.000489d0
jmp 0x3af26f
test edi, 0x20000
jmp 0x3af348
test edi, 0x8000000
jmp 0x3af348
test edi, 0x4000000
jmp 0x3af348
sub eax, 0
je 0x3af5a1
sub eax, 1
je 0x3af5a1
sub eax, 1
je 0x3af5a1
xor eax, eax
mov dword [esp + 0x28], eax
cmp dword [esp + eax*4 + 0x70], edx
je 0x3af58d
xor eax, eax
mov dword [esp + 0x3c], eax
jmp 0x3af370
cmp dword [esp + eax*4 + 0x1b8], edx
je 0x3af579
xor eax, eax
mov dword [esp + 0x38], eax
cmp dword [esp + eax*4 + 0x1a8], edx
je 0x3af55e
mov dword [esp + 0x40], 0
jmp 0x3af3a0
xor eax, eax
mov dword [esp + 0x44], eax
jmp 0x3af3b0
cmp dword [esp + eax*4 + 0x1e0], 0xffffffff
je 0x3af532
mov dword [esp + 0x30], 0
jmp 0x3af3d0
mov dword [esp + 0x34], 0
jmp 0x3af3e0
mov edi, dword [esp + 0x1f4]
xor eax, eax
mov dword [esp + 0x2c], eax
lea ecx, [ecx]
mov ebx, dword [esp + 0x20]
add ebx, ebx
add ebx, ebx
or ebx, dword [esp + 0x24]
lea ecx, [esp + 0x14]
shl ebx, 6
or ebx, dword [esp + 0x28]
push edi
add ebx, ebx
add ebx, ebx
add ebx, ebx
or ebx, dword [esp + 0x40]
add ebx, ebx
add ebx, ebx
or ebx, dword [esp + 0x3c]
add ebx, ebx
or ebx, dword [esp + 0x44]
add ebx, ebx
add ebx, ebx
or ebx, dword [esp + 0x48]
add ebx, ebx
add ebx, ebx
add ebx, ebx
or ebx, dword [esp + 0x34]
add ebx, ebx
add ebx, ebx
or ebx, dword [esp + 0x38]
add ebx, ebx
or ebx, eax
lea eax, [esp + 0x54]
call fcn.003add10
test esi, esi
je 0x3af49a
test eax, eax
je 0x3af4f6
mov ecx, dword [edi + 0x1048c]
push ecx
push edi
lea ebx, [esp + 0x58]
lea eax, [esp + 0x1c]
call fcn.003ae340
test eax, eax
je 0x3af4f6
and dword [edi + 0x1047c], 0xfffffffe
mov dword [esp + 0x48], 0xee00000
lea edx, [esp + 0x10]
push edx
call fcn.00048980
mov eax, dword [esp + 0x48]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1e0
ret 4
test eax, eax
jne 0x3af4f6
mov eax, edi
call fcn.003adad0
cmp eax, 0x900
jae 0x3af4f6
mov edx, dword [ebp]
lea ecx, [eax + eax*2]
add ecx, ecx
add ecx, ecx
sub ecx, eax
add ecx, ecx
add ecx, ecx
sub ecx, eax
add ecx, ecx
add ecx, ecx
mov eax, dword [ecx + edx]
test eax, 0x40000
je 0x3af4f6
test eax, 0x20000
je 0x3af4ed
test ebx, str.Xqv
jne 0x3af4e4
mov eax, dword [edi + 0x10498]
add dword [eax], 0xffffffff
mov eax, dword [edi + 0x1049c]
add dword [eax], 0xffffffff
mov eax, dword [ebp]
add eax, ecx
and byte [eax + 2], 0xfb
mov eax, dword [esp + 0x2c]
add eax, 1
cmp eax, 2
mov dword [esp + 0x2c], eax
jb 0x3af3f0
mov eax, dword [esp + 0x34]
add eax, 1
cmp eax, 4
mov dword [esp + 0x34], eax
jb 0x3af3e0
mov eax, dword [esp + 0x30]
add eax, 1
cmp eax, 8
mov dword [esp + 0x30], eax
jb 0x3af3d0
mov eax, dword [esp + 0x44]
add eax, 1
cmp eax, 4
mov dword [esp + 0x44], eax
jb 0x3af3b0
mov eax, dword [esp + 0x40]
add eax, 1
cmp eax, 2
mov dword [esp + 0x40], eax
jb 0x3af3a0
mov eax, dword [esp + 0x38]
add eax, 1
or edx, 0xffffffff
cmp eax, 4
mov dword [esp + 0x38], eax
jb 0x3af383
mov edi, dword [esp + 0x50]
mov eax, dword [esp + 0x3c]
add eax, 1
cmp eax, 8
mov dword [esp + 0x3c], eax
jb 0x3af370
mov eax, dword [esp + 0x28]
add eax, 1
cmp eax, 0x40
mov dword [esp + 0x28], eax
jb 0x3af354
mov ebx, dword [esp + 0x24]
add ebx, 1
cmp ebx, 4
mov dword [esp + 0x24], ebx
jb 0x3af286
mov eax, dword [esp + 0x20]
add eax, 1
cmp eax, 2
mov dword [esp + 0x20], eax
jb 0x3af280
test esi, esi
je 0x3af5db
mov edi, dword [esp + 0x1f4]
mov ebx, dword [edi + 0x1048c]
call fcn.003aebb0
mov edi, dword [esp + 0x1f4]
mov ecx, dword [edi + 0x10498]
cmp dword [ecx], 0
jne 0x3af623
test esi, esi
jne 0x3af623
mov esi, dword [esp + 0x4c]
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp]
lea edx, [esi + esi*2]
add edx, edx
add edx, edx
sub edx, esi
add edx, edx
add edx, edx
sub edx, esi
add edx, edx
add edx, edx
push edx
push eax
push ecx
call fcn.000489d0
mov edx, dword [edi + 0x1048c]
mov dword [edx], esi
or byte [edi + 0x16], 0x10
mov eax, dword [edi + 0x10490]
mov word [eax], 0
mov ecx, dword [edi + 0x1048c]
lea esi, [edi + 0x1048c]
mov edi, dword [esp + 0x1f4]
xor eax, eax
cmp dword [ecx], eax
jbe 0x3af68a
mov ebx, 2
xor edx, edx
mov edi, edi
cmp edx, 0x60c00
jae 0x3af67b
mov ecx, dword [ebp]
mov ecx, dword [edx + ecx]
test ecx, 0x40000
je 0x3af67b
test ecx, 0x20000
je 0x3af67b
mov ecx, dword [edi + 0x10490]
mov word [ebx + ecx], ax
add ebx, 2
mov ecx, dword [esi]
add eax, 1
add edx, 0xac
cmp eax, dword [ecx]
jb 0x3af650
or dword [edi + 0x1047c], 1
jmp 0x3af47f