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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xa0
mov ebx, dword [ebp + 0xc]
mov eax, ebx
sub eax, dword [edx + 8]
jb 0x10049c0e
mov esi, dword [edx + 0xc]
cmp eax, esi
jae 0x10049c0e
mov edi, dword [ebp + 0x14]
mov dword [esp + 4], edx
lea edx, [edi*8]
cmp esi, edx
mov edx, dword [esp + 4]
jbe 0x10049c0e
lea eax, [eax + edi*8]
cmp eax, esi
ja 0x10049c0e
test edi, edi
mov dword [esp + 0x28], ecx
je 0x10049c18
lea eax, [edx + 0x10]
lea ecx, [edx + 0x1c]
mov dword [esp + 0x70], 0
mov dword [esp + 0x48], eax
mov dword [esp + 0x6c], ecx
mov edi, dword [edx + 8]
mov eax, ebx
sub eax, edi
jb 0x10049c36
mov esi, dword [edx + 0xc]
cmp eax, esi
jae 0x10049c36
cmp esi, 9
jb 0x10049c36
add eax, 8
cmp eax, esi
ja 0x10049c36
mov edx, dword [ebp + 8]
mov dword [esp + 0x78], 0
mov dword [esp + 0x74], 0
lea ecx, [esp + 0xc]
push 8
lea eax, [esp + 0x78]
push eax
push ebx
call fcn.10049020
add esp, 0xc
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x10049c44
cmp dword [esp + 0x14], 8
jne 0x10049c2e
mov edx, dword [esp + 0x78]
mov eax, edx
and eax, 0x7fffffff
cmp esi, eax
jbe 0x10049c36
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x74]
cmp byte [ebp + 0x10], 0
mov dword [esp + 8], ebx
je 0x100498c0
and eax, 0x7fffffff
mov dword [esp + 0x80], edx
cmp esi, eax
jbe 0x10049c36
mov edx, dword [ebp + 8]
mov ecx, eax
mov eax, edi
mov word [esp + 0x4e], 0
mov edi, ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], eax
add edi, eax
push 2
lea eax, [esp + 0x52]
push eax
mov dword [esp + 0x58], edi
push edi
call fcn.100491d0
add esp, 0xc
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
test edx, edx
jne 0x10049c6c
cmp ecx, 2
jne 0x10049c2e
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 4]
add ecx, 2
mov dword [esp + 0x50], ecx
sub ecx, dword [esp + 0x2c]
jb 0x10049c36
cmp ecx, esi
jae 0x10049c36
movzx eax, word [eax]
lea edi, [eax + eax]
cmp esi, edi
jbe 0x10049c36
lea eax, [ecx + eax*2]
cmp eax, esi
ja 0x10049c36
mov esi, dword [edx + 4]
mov ebx, dword [edx + 0x14]
cmp edi, esi
cmovb esi, edi
cmp ebx, esi
jbe 0x10049817
mov eax, dword [edx + 0x18]
nop dword [eax]
cmp ebx, eax
mov ecx, eax
cmovb ecx, ebx
test ecx, ecx
je 0x10049d39
dec ebx
cmp ebx, esi
mov dword [edx + 0x14], ebx
ja 0x10049800
cmp ebx, esi
mov dword [esp + 0x7c], edi
jb 0x10049899
mov eax, dword [esp + 0x48]
mov edi, dword [eax]
mov eax, dword [edx + 0x18]
mov edx, dword [ebp + 8]
lea ecx, [esp + 0xc]
cmp ebx, eax
cmovb eax, ebx
mov dword [esp + 0x2c], eax
push eax
push edi
push dword [esp + 0x58]
call fcn.100491d0
add esp, 0xc
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x10049c52
cmp dword [esp + 0x14], esi
jne 0x100498ce
mov edi, dword [esp + 0x10]
jmp 0x100498f4
mov ecx, dword [esp + 0x48]
mov edx, ebx
call fcn.1000a610
cmp al, 8
jne 0x10049c26
mov edx, dword [esp + 4]
mov edi, dword [edx + 0x10]
mov ebx, dword [edx + 0x14]
mov byte [edi + ebx], 0
inc ebx
cmp ebx, esi
mov dword [edx + 0x14], ebx
jae 0x10049825
cmp ebx, dword [edx + 0x18]
jb 0x10049883
inc ebx
mov ecx, ebx
call fcn.1001fce0
test eax, eax
je 0x10049870
cmp eax, ebx
jbe 0x10049870
mov ecx, dword [esp + 0x48]
mov edx, eax
call fcn.1000a610
cmp al, 8
jne 0x10049870
jmp 0x10049883
mov dword [esp + 0x50], eax
mov dword [esp + 0x2c], 1
jmp 0x10049918
mov edx, dword [ebp + 8]
lea ecx, [esp + 0xc]
push dword [esp + 0x2c]
push edi
push dword [esp + 0x58]
call fcn.10049020
add esp, 0xc
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x10049c52
mov esi, ebx
mov ecx, edi
mov edx, esi
call 0x10073b90
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x50], eax
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x2c], 0
mov edi, dword [ebp + 0x18]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], eax
not edx
movsd xmm0, qword [esp + 0x84]
shr edx, 0x1f
mov dword [esp + 0x98], edx
mov dword [esp + 0x38], edx
mov esi, dword [edi + 4]
movsd qword [esp + 0x90], xmm0
movsd qword [esp + 0x30], xmm0
inc esi
je 0x10049d52
cmp esi, dword [edi + 8]
jbe 0x10049989
mov ecx, esi
call fcn.1001fce0
cmp eax, esi
jbe 0x10049978
mov ecx, edi
mov edx, eax
call fcn.1002e910
cmp al, 8
je 0x10049989
mov ecx, edi
mov edx, esi
call fcn.1002e910
cmp al, 8
jne 0x10049d52
mov ebx, dword [edi]
mov edx, edi
mov edi, dword [edi + 4]
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x44]
lea eax, [edi + edi*2]
inc edi
mov dword [ebx + eax*8], ecx
mov ecx, dword [esp + 0x50]
mov dword [ebx + eax*8 + 4], ecx
movsd xmm0, qword [esp + 0x30]
movsd qword [ebx + eax*8 + 8], xmm0
mov ecx, dword [esp + 0x38]
mov dword [ebx + eax*8 + 0x10], ecx
mov dword [ebx + eax*8 + 0x14], esi
mov dword [edx + 4], edi
je 0x10049c36
cmp dword [ebx + eax*8 + 0x10], 0
je 0x10049ae0
mov edx, dword [esp + 4]
mov ecx, dword [ebx + eax*8 + 0x14]
mov edx, dword [edx + 0xc]
cmp edx, ecx
jbe 0x10049c36
cmp edx, 0x11
jb 0x10049ad0
mov eax, dword [esp + 4]
mov esi, dword [eax + 8]
lea eax, [esi + ecx]
cmp eax, esi
jb 0x10049ad0
add ecx, 0x10
cmp ecx, edx
ja 0x10049ad0
mov edx, dword [esp + 4]
cmp edi, 3
jne 0x10049ad4
mov ecx, dword [edx + 0x20]
cmp dword [edx], ecx
jbe 0x10049ad4
mov edx, dword [ebp + 8]
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x38], 0
push 0xc
lea esi, [esp + 0x34]
push esi
push eax
call fcn.10049020
add esp, 0xc
mov ecx, dword [esp + 0xc]
test ecx, ecx
jne 0x10049d08
cmp dword [esp + 0x14], 0xc
jne 0x10049b56
movsd xmm0, qword [ebx + 0x18]
movsd xmm1, qword [ebx + 0x20]
lea eax, [esp + 0x18]
mov esi, dword [esp + 0x50]
movsd xmm2, qword [esp + 0x30]
mov edx, dword [esp + 4]
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
inc esi
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x38]
movsd xmm0, qword [ebx + 4]
mov dword [esp + 0x44], eax
mov al, 7
movsd qword [esp + 0xc], xmm0
jne 0x10049b67
mov ebx, dword [esp + 8]
cmp ecx, 2
je 0x10049ad8
jmp 0x10049d1e
mov edx, dword [esp + 4]
mov ebx, dword [esp + 8]
mov ecx, dword [ebp + 0x18]
jmp 0x10049b2d
cmp edi, 3
jae 0x10049c36
mov eax, dword [ebx + eax*8 + 0x14]
mov ecx, dword [esp + 4]
cmp dword [ecx + 0xc], eax
jbe 0x10049c36
mov edx, dword [esp + 4]
mov esi, dword [ebp + 0x18]
lea ecx, [esp + 0xc]
add eax, dword [edx + 8]
push esi
push eax
push dword [ebp + 8]
call fcn.10049510
add esp, 0xc
cmp dword [esp + 0xc], 0
mov ebx, dword [esp + 8]
jne 0x10049cf6
mov edi, dword [esi + 4]
mov edx, dword [esp + 4]
mov ecx, esi
mov eax, dword [ecx + 8]
inc dword [esp + 0x70]
cmp edi, eax
cmovb eax, edi
test eax, eax
je 0x10049b41
dec edi
mov dword [ecx + 4], edi
mov eax, dword [ebp + 0x14]
add ebx, 8
cmp dword [esp + 0x70], eax
jne 0x100496bf
jmp 0x10049c18
mov edx, dword [esp + 4]
mov ebx, dword [esp + 8]
mov byte [edx + 0x29], 1
jmp 0x10049ad8
cmp esi, dword [edx + 0x24]
jbe 0x10049bb6
mov ebx, ecx
mov ecx, esi
movaps xmmword [esp + 0x50], xmm2
call fcn.1001fce0
cmp eax, esi
jbe 0x10049b98
mov ecx, dword [esp + 0x6c]
mov edx, eax
call fcn.1002e810
movaps xmm2, xmmword [esp + 0x50]
mov edx, dword [esp + 4]
mov ecx, ebx
cmp al, 8
je 0x10049bb6
mov ecx, dword [esp + 0x6c]
mov edx, esi
call fcn.1002e810
movaps xmm2, xmmword [esp + 0x50]
mov edx, dword [esp + 4]
mov ecx, ebx
cmp al, 8
jne 0x10049ab8
mov eax, dword [edx + 0x20]
mov esi, ecx
mov ecx, dword [edx + 0x1c]
mov ebx, dword [esp + 0x44]
imul edx, eax, 0x2c
inc eax
mov dword [ecx + edx], esi
movsd xmm0, qword [esp + 0xc]
movsd xmm1, qword [esp + 0x14]
movsd qword [ecx + edx + 4], xmm0
movsd qword [ecx + edx + 0xc], xmm1
movsd xmm0, qword [esp + 0x1c]
movsd qword [ecx + edx + 0x14], xmm0
mov esi, dword [esp + 0x24]
mov dword [ecx + edx + 0x1c], esi
movlps qword [ecx + edx + 0x20], xmm2
mov dword [ecx + edx + 0x28], ebx
mov edx, dword [esp + 4]
mov ebx, dword [esp + 8]
mov dword [edx + 0x20], eax
jmp 0x10049ad8
mov word [ecx], 0
jmp 0x10049cee
mov eax, dword [esp + 0x28]
mov word [eax], 0x100
jmp 0x10049cee
mov byte [esp + 0x38], al
xor eax, eax
jmp 0x10049ca9
mov eax, dword [esp + 4]
mov byte [eax + 0x29], 1
mov eax, dword [esp + 0x28]
mov word [eax], 0
jmp 0x10049cee
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
jmp 0x10049cb5
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x38], edx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], esi
jmp 0x10049ca9
mov esi, dword [esp + 0x18]
movd xmm0, edx
shr edx, 0x10
mov word [esp + 0x12], dx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
pslld xmm0, 0x10
lea edx, [esp + 0xc]
lea ecx, [esp + 0x34]
mov dword [esp + 0x1c], esi
mov byte [esp + 0xc], 2
movd dword [esp + 0xe], xmm0
call fcn.10072ef0
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], esi
mov edi, dword [esp + 0x28]
mov dword [esp + 0x98], ecx
movsd xmm0, qword [esp + 0x84]
mov dword [edi + 0x10], ecx
movsd qword [edi + 8], xmm0
mov dword [edi + 4], eax
movsd qword [esp + 0x90], xmm0
mov byte [edi], 1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
jmp 0x10049d27
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov edi, eax
and edi, 0xffffff00
jmp 0x10049d22
xor ecx, ecx
xor edi, edi
movzx eax, al
or eax, edi
mov edi, dword [esp + 0x28]
mov dword [edi + 4], ecx
mov dword [edi + 8], eax
mov dword [edi + 0xc], esi
mov dword [edi + 0x10], edx
jmp 0x10049ceb
mov ecx, 0x647dbcc
mov edx, 0x2b
push 0x6477e90
call fcn.10007ff0
add esp, 4
ud2
lea ecx, [esp + 0xc]
mov edx, 0x647d9ac
mov dword [esp + 0xc], 0x647d998
mov dword [esp + 0x10], 1
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 0x647da08
mov dword [esp + 0x18], 0
call fcn.100075c0
ud2