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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x130
cmp dword [edx + 8], 0
jne 0x10004bf4
mov dword [edx + 8], 0xffffffff
mov esi, edx
mov ebx, ecx
mov ecx, dword [ebp + 8]
mov edx, dword [edx + 0x10]
cmp edx, ecx
jbe 0x10004b70
mov eax, dword [esi + 0xc]
lea edi, [ecx + ecx*2]
cmp dword [eax + edi*4], 2
jne 0x10004b43
lea eax, [eax + edi*4]
mov edx, dword [esi + 0x3c]
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp], ecx
mov dword [esp + 0xd8], eax
lea ecx, [esp + 0x80]
push 0x16aa5a0
push dword [esi + 0x40]
call fcn.10003db0
add esp, 8
mov eax, edi
mov edi, dword [esp + 0x80]
mov dword [esp + 0xbc], ebx
test edi, edi
je 0x10004178
mov ebx, dword [esp + 0x84]
movq xmm0, qword [esp + 0x88]
jmp 0x10004a3e
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0x84]
cmp dword [eax + 0x10], 0
jne 0x10004c33
mov edx, dword [esp]
mov dword [eax + 0x10], 0xffffffff
mov dword [esp + 0x70], eax
mov eax, dword [esi + 0x1c]
mov ecx, edx
shr ecx, 6
cmp ecx, eax
jae 0x10004b8e
mov dword [esp + 0x4c], ecx
mov ebx, 1
xor edi, edi
mov ecx, edx
mov eax, dword [esi + 0x18]
mov dword [esp + 0x50], 0
shld edi, ebx, cl
shl ebx, cl
test dl, 0x20
mov edx, dword [esp + 0x4c]
mov ecx, 0
cmovne edi, ebx
cmovne ebx, ecx
mov dword [esp + 0xb0], edi
mov dword [esp + 0xb4], ebx
mov ecx, dword [eax + edx*8 + 4]
mov eax, dword [eax + edx*8]
and ecx, edi
and eax, ebx
or eax, ecx
je 0x10004c59
mov edx, dword [esp]
mov ecx, dword [esi + 0x24]
mov dword [esp + 0x14], esi
mov esi, dword [esi + 0x28]
mov eax, edx
mov dword [esp + 0xc0], esi
mov esi, dword [esi + 0xc]
mov dword [esp + 0x84], 0
mov dword [esp + 0x80], 0
shr eax, 0x14
mov dword [esp + 0x8c], eax
mov eax, edx
lea edx, [esp + 0x80]
shl eax, 0xc
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x70]
add eax, 0x20
mov dword [esp + 0x74], eax
lea eax, [esp + 0x18]
push edx
push ecx
push eax
call esi
add esp, 0xc
lea edi, [0x16ac195]
lea ebx, [0x16ac196]
mov eax, 0xfffffff9
xor edx, edx
nop word cs:[eax + eax]
nop
movzx ecx, byte [edi]
mov edi, ebx
mov ch, cl
add ch, 0xd0
cmp ch, 0xa
jb 0x100042a5
or cl, 0x20
mov ch, cl
add ch, 0x9f
cmp ch, 6
jae 0x10004bdb
add cl, 0xa9
mov ch, cl
mov ebx, edx
movzx esi, ch
shl ebx, 4
or esi, ebx
lea ebx, [edi + 1]
test eax, eax
cmove ebx, edi
je 0x100042c6
shld dword [esp + 0x50], edx, 4
inc eax
test edi, edi
mov edx, esi
jne 0x10004280
cmp byte [esp + 0x18], 0
je 0x100042da
movzx eax, byte [esp + 0x19]
xor esi, 0x7b
jmp 0x100049b7
push 0x1000
push dword [esp + 0x78]
mov eax, dword [esp + 0x1c]
push dword [eax + 0x24]
mov eax, dword [esp + 0xcc]
call dword [eax + 0x20]
add esp, 0xc
xor ebx, ebx
lea ecx, [0x16ac195]
lea edi, [0x16ac196]
mov eax, 0xfffffff9
mov byte [esp + 0xc0], dl
mov dword [esp + 0x50], 0
nop dword [eax]
movzx edx, byte [ecx]
mov ecx, edi
mov dh, dl
add dh, 0xd0
cmp dh, 0xa
jb 0x10004345
or dl, 0x20
mov dh, dl
add dh, 0x9f
cmp dh, 6
jae 0x10004bdb
add dl, 0xa9
mov dh, dl
mov edi, ebx
movzx esi, dh
shl edi, 4
or esi, edi
lea edi, [ecx + 1]
test eax, eax
cmove edi, ecx
je 0x10004366
shld dword [esp + 0x50], ebx, 4
inc eax
test ecx, ecx
mov ebx, esi
jne 0x10004320
movzx eax, byte [esp + 0xc0]
cmp al, 0xc
jne 0x100049b1
mov eax, dword [esp + 0x14]
movdqa xmm0, xmmword [0x16a3020]
lea edi, [esp + 0x79]
lea ecx, [esp + 0x78]
xor edx, edx
xor ebx, ebx
mov dword [esp + 0x50], 0
movd xmm1, dword [eax + 0x34]
mov eax, dword [esp]
mov dword [esp + 0x7c], 0
pshufd xmm2, xmm1, 0x45
paddq xmm1, xmmword [0x16a3010]
mov dword [esp + 0x78], eax
mov eax, 0xfffffff9
psubq xmm0, xmm2
movsd xmm0, xmm1
movapd xmm1, xmmword [0x16a3030]
xorpd xmm1, xmm0
xorpd xmm0, xmmword [0x16a3040]
movupd xmmword [esp + 0xf0], xmm1
movss dword [esp + 8], xmm1
pshufd xmm1, xmm1, 0x55
movd dword [esp + 4], xmm1
movupd xmmword [esp + 0x100], xmm0
pshufd xmm1, xmm0, 0xff
pshufd xmm0, xmm0, 0xee
movups xmm2, xmmword [esp + 0xf8]
movd dword [esp + 0x10], xmm1
movd dword [esp + 0xc], xmm0
nop dword [eax]
mov dword [esp + 0xc0], edx
mov edx, dword [esp + 8]
mov dword [esp], eax
mov eax, ebx
lea ebx, [esp + 0x41]
xor esi, esi
mov dword [esp + 0x18], edx
mov edx, dword [esp + 4]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x6b]
movups xmmword [esp + 0x20], xmm2
mov dword [ebx + 3], edx
mov edx, dword [esp + 0x68]
mov dword [ebx], edx
mov edx, dword [esp + 0x50]
movzx ebx, byte [ecx]
mov ecx, edx
shl cl, 3
shld esi, ebx, cl
shl ebx, cl
test cl, 0x20
mov ecx, 0
cmovne esi, ebx
cmovne ebx, ecx
inc dl
or ebx, dword [esp + 0xc0]
or esi, eax
test dl, 7
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x40], dl
je 0x100044a0
mov dword [esp + 0x50], edx
mov edx, ebx
mov ebx, esi
jmp 0x1000455d
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x80]
xor eax, esi
xor ecx, ebx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x18]
movsd xmm1, qword [esp + 0x38]
movsd xmm2, qword [esp + 0x30]
movq xmm0, qword [esp + 0x40]
movsd qword [esp + 0xa0], xmm1
movsd xmm1, qword [esp + 0x28]
movsd qword [esp + 0x98], xmm2
movsd xmm2, qword [esp + 0x18]
movq qword [esp + 0xa8], xmm0
movsd qword [esp + 0x90], xmm1
movq xmm1, qword [esp + 0x20]
movsd qword [esp + 0x80], xmm2
movq qword [esp + 0x88], xmm1
push 2
call fcn.10006170
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
movups xmm2, xmmword [esp + 0x20]
xor edx, edx
xor ebx, ebx
xor eax, dword [esp + 0x38]
xor ecx, dword [esp + 0x3c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0xc], eax
movzx eax, byte [esp + 0x40]
mov dword [esp + 0x50], eax
lea ecx, [esp + 0x41]
mov eax, dword [ecx]
mov ecx, dword [ecx + 3]
mov dword [esp + 0x6b], ecx
mov dword [esp + 0x68], eax
mov eax, dword [esp]
mov ecx, edi
inc edi
test eax, eax
cmove edi, ecx
je 0x10004584
inc eax
test ecx, ecx
jne 0x10004420
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x74]
mov esi, 0x1ff
xor edi, edi
mov dword [esp + 0xf0], eax
mov eax, dword [esp + 4]
mov dword [esp + 0xf4], eax
mov eax, dword [esp + 0xc]
movups xmmword [esp + 0xf8], xmm2
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10c], eax
mov eax, 8
jmp 0x10004643
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x74]
mov esi, dword [esp + 0xdc]
mov ebx, dword [esp]
mov dword [esp + 0xf0], eax
mov eax, dword [esp + 4]
mov dword [esp + 0xf4], eax
mov eax, dword [esp + 0x10]
movups xmmword [esp + 0xf8], xmm2
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x10c], eax
mov eax, dword [esp + 0xe4]
mov dword [ecx + eax + 4], esi
mov esi, dword [esp + 0xe0]
mov dword [ecx + eax], esi
mov esi, dword [esp + 0xec]
mov eax, dword [esp + 0xe8]
mov edi, eax
add eax, 8
sub esi, 1
jb 0x10004a54
mov dword [esp + 0xe8], eax
mov eax, dword [ecx + edi]
movdqu xmm0, xmmword [esp + 0x100]
movaps xmmword [esp + 0xc0], xmm2
movups xmm2, xmmword [esp + 0xf0]
mov dword [esp + 0xec], esi
mov dword [esp + 0xe4], edi
mov dword [esp], ebx
mov dword [esp + 4], eax
mov eax, dword [ecx + edi + 4]
pshufd xmm1, xmm0, 0xee
mov ecx, edx
movaps xmmword [esp + 0x110], xmm2
movq qword [esp + 0x90], xmm0
lea edi, [esp + 0x18]
movd esi, xmm1
pshufd xmm1, xmm0, 0xff
xor ecx, esi
mov dword [esp + 0x10], esi
lea esi, [esp + 0x80]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x50]
mov byte [esp + 0x40], al
movzx eax, al
movups xmmword [esp + 0x18], xmm2
movq qword [esp + 0x28], xmm0
mov dword [esp + 0x38], edx
shl eax, 0x18
or eax, ebx
mov ebx, edx
mov edx, esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x30], ecx
movd ecx, xmm1
xor eax, ecx
mov dword [esp + 0xc], ecx
mov ecx, edi
mov dword [esp + 0x34], eax
movsd xmm2, qword [esp + 0x38]
movsd xmm1, qword [esp + 0x40]
movsd xmm3, qword [esp + 0x30]
movsd xmm0, qword [esp + 0x18]
movsd qword [esp + 0xa0], xmm2
movsd xmm2, qword [esp + 0x20]
movsd qword [esp + 0xa8], xmm1
movsd qword [esp + 0x98], xmm3
movsd qword [esp + 0x80], xmm0
movsd qword [esp + 0x88], xmm2
push 2
call fcn.10006170
add esp, 4
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, esi
xor dword [esp + 0x18], ecx
xor dword [esp + 0x1c], eax
not byte [esp + 0x28]
mov ecx, edi
movsd xmm1, qword [esp + 0x38]
movsd xmm2, qword [esp + 0x20]
movsd xmm0, qword [esp + 0x40]
movsd qword [esp + 0xa0], xmm1
movsd xmm1, qword [esp + 0x30]
movsd qword [esp + 0xa8], xmm0
movsd qword [esp + 0x88], xmm2
movsd qword [esp + 0x98], xmm1
movsd xmm1, qword [esp + 0x28]
movsd qword [esp + 0x90], xmm1
movsd xmm1, qword [esp + 0x18]
movsd qword [esp + 0x80], xmm1
push 4
call fcn.10006170
movaps xmm2, xmmword [esp + 0xc4]
mov edx, ebx
add esp, 4
movdqu xmm0, xmmword [esp + 0x18]
movdqu xmm1, xmmword [esp + 0x28]
mov esi, 0xfffffff9
lea edi, [esp + 0x79]
pxor xmm1, xmm0
pshufd xmm0, xmm1, 0xee
pxor xmm0, xmm1
movd eax, xmm0
pshufd xmm0, xmm0, 0x55
movd ecx, xmm0
movdqa xmm0, xmmword [esp + 0x110]
xor eax, dword [esp + 4]
xor ecx, dword [esp + 8]
movd dword [esp + 8], xmm0
pshufd xmm0, xmm0, 0x55
mov dword [esp + 0xe0], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0xdc], ecx
mov dword [esp + 0x7c], ecx
lea ecx, [esp + 0x78]
movd dword [esp + 4], xmm0
nop word cs:[eax + eax]
mov eax, dword [esp]
mov dword [esp], edx
mov edx, dword [esp + 0x6b]
lea ebx, [esp + 0x41]
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x1c], eax
movups xmmword [esp + 0x20], xmm2
mov dword [ebx + 3], edx
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x50]
mov dword [ebx], edx
movzx edx, byte [ecx]
mov ecx, eax
xor ebx, ebx
shl cl, 3
shld ebx, edx, cl
shl edx, cl
test cl, 0x20
mov ecx, 0
cmovne ebx, edx
cmovne edx, ecx
inc al
or ebx, dword [esp + 0xc0]
or edx, dword [esp]
test al, 7
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], edx
mov byte [esp + 0x40], al
je 0x100048c0
mov dword [esp], ebx
jmp 0x1000497e
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
xor eax, edx
xor ecx, ebx
lea edx, [esp + 0x80]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x18]
movsd xmm1, qword [esp + 0x38]
movsd xmm2, qword [esp + 0x30]
movq xmm0, qword [esp + 0x40]
movsd qword [esp + 0xa0], xmm1
movsd xmm1, qword [esp + 0x28]
movsd qword [esp + 0x98], xmm2
movsd xmm2, qword [esp + 0x18]
movq qword [esp + 0xa8], xmm0
movsd qword [esp + 0x90], xmm1
movq xmm1, qword [esp + 0x20]
movsd qword [esp + 0x80], xmm2
movq qword [esp + 0x88], xmm1
push 2
call fcn.10006170
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
movups xmm2, xmmword [esp + 0x20]
xor edx, edx
mov dword [esp], 0
xor eax, dword [esp + 0x38]
xor ecx, dword [esp + 0x3c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x10], eax
movzx eax, byte [esp + 0x40]
mov dword [esp + 0x50], eax
lea ecx, [esp + 0x41]
test esi, esi
mov eax, dword [ecx]
mov ecx, dword [ecx + 3]
mov dword [esp + 0x6b], ecx
mov ecx, edi
lea edi, [edi + 1]
mov dword [esp + 0x68], eax
cmove edi, ecx
je 0x100045d0
inc esi
test ecx, ecx
jne 0x10004840
jmp 0x100045d0
xor esi, 0x7c
movzx eax, al
mov ecx, dword [eax*4 + 0x16a5238]
mov ebx, dword [eax*4 + 0x16a5268]
mov edx, 7
mov dword [esp + 0x50], ecx
mov ecx, 0x16a51d0
call fcn.1000bf90
mov edx, dword [esp + 0x50]
mov ecx, ebx
mov edi, eax
test eax, eax
mov eax, 1
cmove edi, eax
call fcn.1000bf90
mov ecx, dword [esp + 0x70]
mov ebx, eax
test eax, eax
mov eax, 1
movd xmm0, esi
cmove ebx, eax
inc dword [ecx + 0x10]
dec dword [ecx]
je 0x10004a10
mov esi, dword [esp + 0x14]
jmp 0x10004a3e
cmp dword [ecx + 4], 0
mov esi, dword [esp + 0x14]
jne 0x10004a3e
mov eax, dword [0x16ad000]
push 0x10
push 0x1030
push ecx
push 0x16ac968
movdqa xmmword [esp + 0x60], xmm0
call dword [eax + 0x10]
movdqa xmm0, xmmword [esp + 0x60]
add esp, 0x10
mov eax, dword [esp + 0xbc]
mov dword [eax], edi
mov dword [eax + 4], ebx
movq qword [eax + 8], xmm0
jmp 0x10004b65
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x4c]
mov edx, dword [ecx + 0x1c]
cmp eax, edx
mov dword [esp + 0x50], edx
jae 0x10004b9f
mov edx, dword [ecx + 0x18]
mov edi, dword [edx + eax*8]
mov esi, dword [edx + eax*8 + 4]
mov eax, esi
mov ebx, edi
and eax, dword [esp + 0xb0]
and ebx, dword [esp + 0xb4]
or ebx, eax
je 0x10004c72
mov eax, dword [ecx + 0x20]
mov ebx, dword [esp + 0x50]
cmp ebx, eax
cmovb eax, ebx
mov ebx, dword [esp + 0xbc]
cmp dword [esp + 0x4c], eax
jae 0x10004bb4
or edi, dword [esp + 0xb4]
mov eax, dword [esp + 0x4c]
or esi, dword [esp + 0xb0]
mov dword [edx + eax*8], edi
mov edi, dword [esp + 0x70]
mov dword [edx + eax*8 + 4], esi
dec dword [ecx + 0x2c]
inc dword [edi + 0x10]
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0x14]
cmp eax, edx
cmovb edx, eax
cmp edx, dword [ebp + 8]
jbe 0x10004bc9
mov eax, dword [ecx + 0xc]
mov ecx, dword [esp + 0xb8]
cmp dword [eax + ecx*4], 1
lea esi, [eax + ecx*4]
jne 0x10004b1c
mov eax, dword [esi + 4]
dec dword [eax]
jne 0x10004b1c
cmp dword [eax + 4], 0
jne 0x10004b1c
mov ecx, dword [0x16ad000]
push 0x10
push 0x1030
push eax
push 0x16ac968
call dword [ecx + 0x10]
add esp, 0x10
mov eax, dword [esp + 0xd8]
mov dword [esi], 1
mov dword [esi + 4], edi
mov ecx, dword [ebp + 8]
mov edi, dword [esp + 0xb8]
mov dword [esi + 8], eax
mov esi, dword [esp + 0x14]
inc dword [esi + 0x3c]
mov edx, dword [esi + 0x10]
cmp edx, ecx
jbe 0x10004b7f
mov eax, dword [esi + 0xc]
cmp dword [eax + edi*4], 1
jne 0x10004c1a
lea eax, [eax + edi*4]
mov eax, dword [eax + 4]
inc dword [eax]
mov dword [ebx + 4], eax
mov dword [ebx], 0
inc dword [esi + 8]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x16a3998
call fcn.10007630
add esp, 4
ud2
push 0x16a39a8
call fcn.10007630
add esp, 4
ud2
mov edx, eax
push 0x16ac1a0
call fcn.10007630
add esp, 4
ud2
mov edx, dword [esp + 0x50]
mov ecx, eax
push 0x16ac1a0
call fcn.10007630
add esp, 4
ud2
mov ecx, dword [esp + 0x4c]
mov edx, eax
push 0x16ac1fc
call fcn.10007630
add esp, 4
ud2
mov ecx, dword [ebp + 8]
push 0x16a3868
call fcn.10007630
add esp, 4
ud2
mov ecx, 0x16ac7bc
mov edx, 0xe
push 0x16a4dc0
call fcn.10007ff0
add esp, 4
ud2
lea eax, [esp + 0x80]
mov ecx, 0x16aca3c
mov edx, 0x10
push 0x16a3848
push 0x16a3b7c
push eax
call fcn.10008840
add esp, 0xc
ud2
mov ecx, 0x16ac7bc
mov edx, 0xe
push 0x16a38a8
call fcn.10007ff0
add esp, 4
ud2
mov ecx, 0x16aca3c
mov edx, 0x10
push 0x16a3858
push 0x16a3b7c
lea eax, [esp + 0x88]
push eax
call fcn.10008840
add esp, 0xc
ud2
mov ecx, 0x16ac20c
mov edx, 0x2a
push 0x16ac258
call fcn.10007ff0
add esp, 4
ud2
mov ecx, 0x16ac20c
mov edx, 0x2a
push 0x16ac238
call fcn.10007ff0
add esp, 4
ud2