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

Disassembly:
sub esp, 0x114
xor eax, eax
push esi
mov esi, dword [esp + 0x124]
mov esi, dword [esi + 0x10]
cmp dword [esi], eax
cmove esi, eax
test esi, esi
je 0x4add6e
mov eax, dword [esi]
xor ecx, ecx
push ebx
push ebp
push edi
cmp dword [eax], ecx
mov edi, dword [esp + 0x128]
cmove eax, ecx
mov dword [esp + 0x38], eax
mov ebp, dword [esp + 0x134]
nop
mov eax, dword [esi + 0xc]
cmp eax, 2
jne 0x4ad23c
push 0x3c208
push ebp
push edi
call fcn.004acfb0
add esp, 0xc
jmp case.0x4ad961.538
cmp eax, 4
jne case.0x4ad961.538
mov ebx, dword [esi + 0x18]
mov eax, ebx
cmp eax, 0x100
jg 0x4ad94c
je 0x4ad5f0
sub eax, 0x2d
cmp eax, 0x5f
ja case.0x4ad961.538
movzx eax, byte [eax + 0x4add94]
jmp dword [eax*4 + 0x4add78]
imul ecx, ebx, 0x64
movzx eax, byte [ecx + 0x52384f]
test byte [esi + eax*4 + 0x30], 1
je case.0x4ad961.538
movzx eax, byte [ecx + 0x523850]
push dword [esi + eax*4 + 0x30]
push ebp
push edi
call fcn.004acfb0
add esp, 0xc
jmp case.0x4ad961.538
push 8
push ebp
push edi
call fcn.004acfb0
add esp, 0xc
jmp case.0x4ad961.538
movups xmm0, xmmword [esi + 0x58]
xor edx, edx
psrldq xmm0, 0xc
movd eax, xmm0
movups xmm0, xmmword [esi + 0x68]
psrldq xmm0, 0xc
mov eax, dword [eax]
cmp dword [eax + 0xc], 1
mov dword [esp + 0x24], 0
cmove edx, eax
movd eax, xmm0
mov dword [esp + 0x20], edx
xor ecx, ecx
mov eax, dword [eax]
cmp dword [eax + 0xc], 1
mov dword [esp + 0x1c], 0
cmove ecx, eax
mov eax, 1
mov dword [esp + 0x18], ecx
mov ecx, dword [edx + 0x20]
mov cl, byte [ecx + 0x10]
shl eax, cl
imul ecx, ebx, 0x64
dec eax
mov dword [esp + 0x14], eax
movzx eax, byte [ecx + 0x52384d]
test byte [esi + eax*4 + 0x30], 4
jne 0x4ad5e0
movzx eax, byte [ecx + 0x52384c]
test byte [esi + eax*4 + 0x30], 4
jne 0x4ad5e0
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1c]
push eax
push dword [edi + 4]
call fcn.00417590
add esp, 0xc
test al, 1
je 0x4ad361
push esi
call fcn.00409650
add esp, 4
mov byte [edi + 0x18], 1
jmp case.0x4ad961.538
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x18], 1
jne 0x4ad3af
movups xmm0, xmmword [eax + 0x24]
xor ecx, ecx
psrldq xmm0, 0xc
movd eax, xmm0
mov eax, dword [eax]
cmp dword [eax + 0xc], 1
cmove ecx, eax
push dword [ecx + 0x20]
call fcn.0045f600
add esp, 4
test al, al
je 0x4ad3af
mov eax, dword [esp + 0x18]
movups xmm0, xmmword [eax + 0x34]
psrldq xmm0, 0xc
movd eax, xmm0
mov eax, dword [eax]
cmp dword [eax + 0xc], 5
je 0x4ad5e0
mov eax, dword [esp + 0x20]
cmp dword [eax + 0x18], 1
jne 0x4ad3fd
movups xmm0, xmmword [eax + 0x24]
xor ecx, ecx
psrldq xmm0, 0xc
movd eax, xmm0
mov eax, dword [eax]
cmp dword [eax + 0xc], 1
cmove ecx, eax
push dword [ecx + 0x20]
call fcn.0045f600
add esp, 4
test al, al
je 0x4ad3fd
mov eax, dword [esp + 0x20]
movups xmm0, xmmword [eax + 0x34]
psrldq xmm0, 0xc
movd eax, xmm0
mov eax, dword [eax]
cmp dword [eax + 0xc], 5
je 0x4ad5e0
push 0
push 4
lea eax, [esp + 0x20]
push eax
push ebp
push edi
call fcn.004aee60
mov ebx, dword [esp + 0x140]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x30]
push ecx
push esi
push ebx
push eax
push edi
call fcn.004af370
add esp, 0x2c
test al, al
je 0x4ad4c2
cmp byte [esp + 0x7c], 0
je 0x4ad468
mov ebx, dword [esp + 0x14]
push ebx
push dword [esp + 0x84]
push dword [esp + 0x28]
push dword [esp + 0x138]
call fcn.0041ad40
mov esi, dword [esp + 0x28]
add esp, 0x10
mov byte [edi + 0x18], 1
jmp 0x4ad553
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x84]
push eax
push dword [edi + 4]
call fcn.00417590
add esp, 0xc
test al, 1
jne case.0x4ad961.538
mov eax, dword [esp + 0x80]
xorps xmm0, xmm0
movups xmmword [esp + 0x6c], xmm0
add eax, 0x48
mov dword [esp + 0x78], eax
movups xmm0, xmmword [esp + 0x6c]
push esi
push ebx
movups xmmword [esi + 0x68], xmm0
call fcn.0041dc20
mov ebx, dword [esp + 0x1c]
add esp, 8
mov esi, dword [esp + 0x18]
mov byte [edi + 0x18], 1
jmp 0x4ad553
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
push 0x48
mov dword [esp + 0xdc], eax
lea eax, [esp + 0xe0]
push 0
push eax
mov byte [esp + 0xdc], 0
mov dword [esp + 0xe0], esi
call fcn.004f0560
movups xmm0, xmmword [esp + 0xdc]
mov eax, dword [esp + 0x12c]
add esp, 0xc
mov ebx, dword [esp + 0x14]
movups xmmword [esp + 0x7c], xmm0
mov dword [esp + 0xcc], eax
movups xmm0, xmmword [esp + 0xe0]
movups xmmword [esp + 0x8c], xmm0
movups xmm0, xmmword [esp + 0xf0]
movups xmmword [esp + 0x9c], xmm0
movups xmm0, xmmword [esp + 0x100]
movups xmmword [esp + 0xac], xmm0
movups xmm0, xmmword [esp + 0x110]
movups xmmword [esp + 0xbc], xmm0
cmp dword [esi + 0x18], 0
je 0x4ad58e
nop dword [eax]
mov eax, dword [esi + 0x18]
cmp eax, 5
je 0x4ad5a2
test eax, eax
jne 0x4ad570
xor esi, esi
jmp 0x4ad588
movups xmm0, xmmword [esi + 0x24]
xor esi, esi
psrldq xmm0, 0xc
movd eax, xmm0
mov eax, dword [eax]
cmp dword [eax + 0xc], 1
cmove esi, eax
cmp dword [esi + 0x18], 0
jne 0x4ad560
mov eax, dword [esi + 0x24]
test eax, eax
je 0x4ad5a2
test dword [eax + 0x10], 0x10000000
jne case.0x4ad961.538
push 0
push ebx
lea eax, [esp + 0x28]
push eax
push ebp
push edi
call fcn.004aec50
add esp, 0x14
test eax, eax
jne 0x4ad5c7
lea eax, [esp + 0x20]
push eax
push ebp
push edi
call fcn.004ad130
add esp, 0xc
push ebx
push 0
lea ecx, [esp + 0x84]
push ecx
push eax
call fcn.004af4f0
add esp, 0x10
jmp case.0x4ad961.538
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push 1
push ebx
jmp 0x4add2b
imul eax, ebx, 0x64
movzx eax, byte [eax + 0x52383e]
test byte [esi + eax*4 + 0x30], 4
jne case.0x4ad961.538
movups xmm0, xmmword [esi + 0x58]
xor ecx, ecx
psrldq xmm0, 0xc
movd eax, xmm0
mov eax, dword [eax]
cmp dword [eax + 0xc], 1
mov dword [esp + 0x2c], 0
cmove ecx, eax
mov dword [esp + 0x28], ecx
test dword [ecx + 0x1c], 0xfffffbf9
je case.0x4ad961.538
cmp dword [ecx + 0x18], 5
jne 0x4ad69d
nop dword [eax]
cmp dword [ecx + 0x18], 0
je 0x4ad69d
movups xmm0, xmmword [ecx + 0x24]
psrldq xmm0, 0xc
movd eax, xmm0
mov eax, dword [eax]
cmp dword [eax + 0xc], 1
jne 0x4ad69d
test eax, eax
je 0x4ad69d
push ecx
call fcn.00417600
add esp, 4
test al, al
je 0x4ad699
mov eax, dword [esp + 0x28]
xor ecx, ecx
cmp dword [eax + 0x18], ecx
je 0x4ad68d
movups xmm0, xmmword [eax + 0x24]
psrldq xmm0, 0xc
movd eax, xmm0
mov eax, dword [eax]
cmp dword [eax + 0xc], 1
cmove ecx, eax
mov dword [esp + 0x28], ecx
cmp dword [ecx + 0x18], 5
je 0x4ad640
jmp 0x4ad69d
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
cmp dword [ecx + 0x18], 1
mov dword [esp + 0x14], 0
jne 0x4ad7c1
movups xmm0, xmmword [ecx + 0x24]
xor ecx, ecx
psrldq xmm0, 0xc
movd eax, xmm0
mov eax, dword [eax]
cmp dword [eax + 0xc], 1
cmove ecx, eax
push dword [ecx + 0x20]
call fcn.0045f600
add esp, 4
test al, al
je 0x4ad7c1
mov ecx, dword [esp + 0x28]
movups xmm0, xmmword [ecx + 0x34]
psrldq xmm0, 0xc
movd eax, xmm0
mov eax, dword [eax]
cmp dword [eax + 0xc], 5
jne 0x4ad7c1
xor ebx, ebx
cmp dword [ecx + 0x18], ebx
je 0x4ad720
movups xmm0, xmmword [ecx + 0x24]
psrldq xmm0, 0xc
movd eax, xmm0
mov eax, dword [eax]
cmp dword [eax + 0xc], 1
cmove ebx, eax
mov dword [esp + 0x3c], ebx
movups xmm0, xmmword [ecx + 0x34]
psrldq xmm0, 0xc
movd eax, xmm0
mov ecx, dword [eax]
movzx eax, byte [ecx + 0x29]
push eax
push dword [ecx + 0x34]
push dword [ecx + 0x30]
call fcn.00407cf0
mov ecx, dword [ebx + 0x20]
add esp, 0xc
mov dword [esp + 0x14], eax
movzx ecx, byte [ecx + 0x10]
cmp eax, ecx
jb 0x4ad7c1
mov ebx, dword [esi + 4]
cmp dword [ebx + 4], 0
je 0x4ad769
test ebx, ebx
je 0x4ad769
mov ebp, 3
jmp 0x4ad76e
mov ebx, dword [esi + 8]
xor ebp, ebp
push esi
call fcn.00409650
mov ecx, dword [esp + 0x130]
mov dword [ecx], ebp
mov dword [ecx + 4], ebx
movzx eax, byte [esi + 0x2d]
push eax
push 1
push dword [ecx + 0x10]
call fcn.0040b000
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x4ad7ab
push ebx
push dword [esp + 0x130]
call fcn.0041dc60
add esp, 8
add ebx, 0x18
push ebx
add esi, 0x1c
push esi
call fcn.00407f30
add esp, 8
mov byte [edi + 0x18], 1
jmp case.0x4ad961.538
lea eax, [esp + 0x13]
mov byte [esp + 0x13], 0
push eax
push 4
lea eax, [esp + 0x30]
push eax
push ebp
push edi
call fcn.004aee60
push 0x54
mov ebp, eax
lea eax, [esp + 0x94]
push 0
push eax
call fcn.004f0560
mov ebx, dword [esp + 0x14c]
lea eax, [esp + 0x9c]
push eax
lea eax, [esp + 0x4c]
push eax
push esi
push ebx
push ebp
push edi
call fcn.004af370
add esp, 0x38
test al, al
je 0x4ad8b9
cmp byte [esp + 0x7c], 0
je 0x4ad85f
cmp dword [esi + 8], 0
lea ecx, [esi + 0x1c]
je 0x4ad843
mov eax, dword [esp + 0x80]
push dword [eax]
push eax
push ecx
call fcn.00407fa0
add esp, 0xc
mov byte [edi + 0x18], 1
lea ebx, [esi + 0x30]
jmp 0x4ad8e3
push dword [esp + 0x80]
push ecx
call fcn.00407f30
add esp, 8
mov byte [edi + 0x18], 1
lea ebx, [esi + 0x30]
jmp 0x4ad8e3
mov eax, dword [esp + 0x80]
xorps xmm0, xmm0
movups xmmword [esp + 0x6c], xmm0
add eax, 0x48
mov dword [esp + 0x78], eax
movups xmm0, xmmword [esp + 0x6c]
push esi
push ebx
movups xmmword [esi + 0x58], xmm0
call fcn.0041dc20
movzx ecx, byte [esi + 0x30]
lea ebx, [esi + 0x30]
add esp, 8
mov byte [esp + 0x7c], 1
xor eax, eax
test ecx, ecx
je 0x4ad8b3
add esi, 0x1c
nop dword [eax]
mov dword [esp + eax*4 + 0x80], esi
mov byte [esp + eax + 0xc0], al
inc eax
cmp eax, ecx
jb 0x4ad8a0
mov byte [edi + 0x18], 1
jmp 0x4ad8e3
movzx ecx, byte [esi + 0x30]
lea ebx, [esi + 0x30]
xor eax, eax
mov byte [esp + 0x7c], 1
test ecx, ecx
je 0x4ad8e3
add esi, 0x1c
nop
mov dword [esp + eax*4 + 0x80], esi
mov byte [esp + eax + 0xc0], al
inc eax
cmp eax, ecx
jb 0x4ad8d0
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x134]
cmp eax, dword [esp + 0x3c]
je 0x4ad90b
push 0
push 1
lea eax, [esp + 0x44]
push eax
push esi
push edi
call fcn.004aee60
add esp, 0x14
mov ebp, eax
jmp 0x4ad912
cmp byte [esp + 0x13], 0
je 0x4ad916
test ebp, ebp
jne 0x4ad927
lea eax, [esp + 0x3c]
push eax
push esi
push edi
call fcn.004ad130
add esp, 0xc
mov ebp, eax
mov cl, byte [ebx]
mov eax, 1
shl eax, cl
dec eax
push eax
push dword [esp + 0x18]
lea eax, [esp + 0x84]
push eax
push ebp
call fcn.004af4f0
add esp, 0x10
jmp case.0x4ad961.538
sub eax, 0x219
cmp eax, 0x69
ja case.0x4ad961.538
movzx eax, byte [eax + 0x4ade10]
jmp dword [eax*4 + 0x4addf4]
push 0x20260
push ebp
push edi
call fcn.004acfb0
add esp, 0xc
jmp case.0x4ad961.538
push 0x20220
push ebp
push edi
call fcn.004acfb0
add esp, 0xc
jmp case.0x4ad961.538
movups xmm0, xmmword [esi + 0x58]
xor ecx, ecx
psrldq xmm0, 0xc
movd eax, xmm0
mov eax, dword [eax]
cmp dword [eax + 0xc], 1
mov dword [esp + 0x34], 0
cmove ecx, eax
mov dword [esp + 0x30], ecx
cmp dword [ecx + 0x18], 5
jne 0x4ada1d
nop word [eax + eax]
cmp dword [ecx + 0x18], 0
je 0x4ada1d
movups xmm0, xmmword [ecx + 0x24]
psrldq xmm0, 0xc
movd eax, xmm0
mov eax, dword [eax]
cmp dword [eax + 0xc], 1
jne 0x4ada1d
test eax, eax
je 0x4ada1d
push ecx
call fcn.00417600
add esp, 4
test al, al
je 0x4ada19
mov eax, dword [esp + 0x30]
xor ecx, ecx
cmp dword [eax + 0x18], ecx
je 0x4ada0d
movups xmm0, xmmword [eax + 0x24]
psrldq xmm0, 0xc
movd eax, xmm0
mov eax, dword [eax]
cmp dword [eax + 0xc], 1
cmove ecx, eax
mov dword [esp + 0x30], ecx
cmp dword [ecx + 0x18], 5
je 0x4ad9c0
jmp 0x4ada1d
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], eax
cmp dword [ecx + 0x18], 1
mov dword [esp + 0x14], 0
jne 0x4adae5
movups xmm0, xmmword [ecx + 0x24]
xor ecx, ecx
psrldq xmm0, 0xc
movd eax, xmm0
mov eax, dword [eax]
cmp dword [eax + 0xc], 1
cmove ecx, eax
push dword [ecx + 0x20]
call fcn.0045f600
add esp, 4
test al, al
je 0x4adae5
mov ecx, dword [esp + 0x30]
movups xmm0, xmmword [ecx + 0x34]
psrldq xmm0, 0xc
movd eax, xmm0
mov eax, dword [eax]
cmp dword [eax + 0xc], 5
jne 0x4adae5
xor ebx, ebx
cmp dword [ecx + 0x18], ebx
je 0x4ada9c
movups xmm0, xmmword [ecx + 0x24]
psrldq xmm0, 0xc
movd eax, xmm0
mov eax, dword [eax]
cmp dword [eax + 0xc], 1
cmove ebx, eax
mov dword [esp + 0x44], ebx
movups xmm0, xmmword [ecx + 0x34]
psrldq xmm0, 0xc
movd eax, xmm0
mov ecx, dword [eax]
movzx eax, byte [ecx + 0x29]
push eax
push dword [ecx + 0x34]
push dword [ecx + 0x30]
call fcn.00407cf0
mov ecx, dword [ebx + 0x20]
mov edx, eax
add esp, 0xc
mov dword [esp + 0x14], edx
movzx ecx, byte [ecx + 0x10]
cmp edx, ecx
jb 0x4adae5
push esi
call fcn.00409650
add esp, 4
mov byte [edi + 0x18], 1
jmp case.0x4ad961.538
imul ecx, dword [esi + 0x18], 0x64
movzx eax, byte [ecx + 0x52383e]
test byte [esi + eax*4 + 0x30], 4
je 0x4adb0d
movzx eax, byte [ecx + 0x52382e]
push 1
push dword [esi + eax*4 + 0x30]
lea eax, [esp + 0x38]
jmp 0x4add2b
push 0
push 1
lea eax, [esp + 0x38]
push eax
push ebp
push edi
call fcn.004aee60
add esp, 0x14
test eax, eax
je 0x4adb9d
imul ecx, dword [esi + 0x18], 0x64
movzx ebx, byte [esi + 0x30]
mov dword [esp + 0x50], ebx
movzx ecx, byte [ecx + 0x52382e]
movzx edx, word [esi + ecx*4 + 0x30]
xor ecx, ecx
mov dword [esp + 0x4c], edx
test ebx, ebx
je 0x4adb84
lea edx, [eax + 4]
lea ebp, [eax + 0x44]
nop dword [eax]
mov ebx, dword [esp + 0x4c]
mov eax, 1
movzx edi, bx
mov ebx, dword [esp + 0x50]
shl eax, cl
test edi, eax
mov edi, dword [esp + 0x128]
je 0x4adb7c
mov eax, dword [edx]
cmp eax, dword [esi + 0x74]
jne 0x4adb96
movzx eax, byte [ecx + ebp]
cmp eax, ecx
jne 0x4adb96
inc ecx
add edx, 4
cmp ecx, ebx
jb 0x4adb50
push esi
call fcn.00409650
add esp, 4
mov byte [edi + 0x18], 1
jmp case.0x4ad961.538
mov ebp, dword [esp + 0x134]
push 0x53
lea eax, [esp + 0xd5]
push 0
push eax
call fcn.004f0560
movzx ecx, byte [esi + 0x30]
add esp, 0xc
mov edx, dword [esi + 0x74]
xor eax, eax
mov byte [esp + 0xd0], 1
test ecx, ecx
je 0x4adbe3
nop word [eax + eax]
mov dword [esp + eax*4 + 0xd4], edx
mov byte [esp + eax + 0x114], al
inc eax
cmp eax, ecx
jb 0x4adbd0
imul eax, dword [esi + 0x18], 0x64
push 0
movzx eax, byte [eax + 0x52382e]
mov esi, dword [esi + eax*4 + 0x30]
lea eax, [esp + 0x48]
push esi
push eax
push ebp
push edi
call fcn.004aec50
add esp, 0x14
test eax, eax
jne 0x4adc17
lea eax, [esp + 0x44]
push eax
push ebp
push edi
call fcn.004ad130
add esp, 0xc
push esi
push dword [esp + 0x18]
lea ecx, [esp + 0xd8]
push ecx
push eax
call fcn.004af4f0
add esp, 0x10
jmp case.0x4ad961.538
push esi
call fcn.00408ca0
xor ecx, ecx
push 1
movups xmm0, xmmword [eax]
psrldq xmm0, 0xc
movd eax, xmm0
mov eax, dword [eax]
cmp dword [eax + 0xc], 1
mov dword [esp + 0x68], 0
cmove ecx, eax
mov eax, 1
mov dword [esp + 0x64], ecx
mov ecx, dword [ecx + 0x20]
mov cl, byte [ecx + 0x10]
shl ax, cl
dec ax
movzx eax, ax
push eax
lea eax, [esp + 0x68]
push eax
push ebp
push edi
call fcn.004aec50
add esp, 0x18
jmp case.0x4ad961.538
movups xmm0, xmmword [esi + 0x58]
xor ecx, ecx
push 1
psrldq xmm0, 0xc
movd eax, xmm0
mov eax, dword [eax]
cmp dword [eax + 0xc], 1
mov dword [esp + 0x6c], 0
cmove ecx, eax
mov eax, 1
mov dword [esp + 0x68], ecx
mov ecx, dword [ecx + 0x20]
mov cl, byte [ecx + 0x10]
shl eax, cl
dec eax
push eax
lea eax, [esp + 0x6c]
jmp 0x4add2b
movups xmm0, xmmword [esi + 0x58]
xor ecx, ecx
psrldq xmm0, 0xc
movd eax, xmm0
mov eax, dword [eax]
cmp dword [eax + 0xc], 1
mov dword [esp + 0x58], ecx
cmove ecx, eax
mov dword [esp + 0x54], ecx
cmp dword [ecx + 0x18], 0
je 0x4add16
movups xmm0, xmmword [ecx + 0x24]
psrldq xmm0, 0xc
movd eax, xmm0
mov eax, dword [eax]
cmp dword [eax + 0xc], 1
jne 0x4add16
test eax, eax
je 0x4add16
movups xmm0, xmmword [ecx + 0x24]
xor ecx, ecx
psrldq xmm0, 0xc
movd eax, xmm0
mov eax, dword [eax]
cmp dword [eax + 0xc], 1
jmp 0x4adcd9
mov ecx, dword [ecx + 0x20]
mov eax, 1
push 1
mov cl, byte [ecx + 0x10]
shl eax, cl
dec eax
push eax
lea eax, [esp + 0x5c]
push eax
push ebp
push edi
call fcn.004aec50
add esp, 0x14
mov eax, dword [esp + 0x38]
mov esi, eax
test eax, eax
je 0x4add56
mov eax, dword [eax]
test eax, eax
je 0x4add56
xor ebp, ebp
cmp dword [eax], ebp
cmovne ebp, eax
mov dword [esp + 0x38], ebp
jmp 0x4ad217
mov ebp, dword [esp + 0x134]
xor eax, eax
mov dword [esp + 0x38], eax
test esi, esi
jne 0x4ad220
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x114
ret