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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x108
mov esi, dword [ebp + 8]
cmp dword [edx + 0xc], 0
mov eax, edx
mov ebx, ecx
je 0x49a5e4
movsd xmm1, qword [eax + 0x30]
movsd xmm2, qword [eax + 0x18]
movsd xmm0, qword [eax + 0x38]
movsd xmm3, qword [eax + 0x20]
lea edi, [esp + 0xb8]
mov ecx, 0x12
movsd qword [ebx + 0x10], xmm1
movsd xmm1, qword [eax + 0x28]
movsd qword [esp + 0xb0], xmm2
movsd xmm2, qword [eax]
movsd qword [ebx + 0x18], xmm0
movsd qword [ebx], xmm3
movsd qword [ebx + 8], xmm1
movsd xmm1, qword [eax + 0x10]
movsd qword [esp + 0x98], xmm2
add ebx, 0x20
movsd qword [esp + 0xa8], xmm1
movsd xmm1, qword [eax + 8]
movsd qword [esp + 0xa0], xmm1
rep movsd dword es:[edi], dword [esi]
lea esi, [esp + 0x98]
mov ecx, 0x1a
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
jmp 0x49ab2e
mov ecx, dword [esi]
mov edi, dword [eax + 0x20]
mov edx, dword [eax + 0x1c]
cmp byte [esi + 0x38], 0
mov dword [esp + 0x30], ecx
mov ecx, dword [esi + 4]
mov dword [esp + 8], edi
mov edi, dword [eax + 0x28]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax + 0x10]
je 0x49a64d
mov edx, dword [eax + 0x18]
mov esi, dword [eax + 0x14]
test ecx, ecx
mov dword [esp + 0xc], edx
mov edx, dword [eax + 0x24]
mov dword [esp + 0x10], edx
je 0x49a8c1
mov dword [esp], esi
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x10], edx
mov edx, eax
mov edi, 1
mov dword [esp + 0x1c], ecx
mov ecx, esi
jmp 0x49aae2
mov dword [esp + 0x24], ecx
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x1c], edi
mov edi, dword [esi + 0x24]
mov edx, dword [esp + 8]
mov dword [esp + 0x18], eax
mov dword [esp + 0x38], ecx
mov ecx, dword [esi + 0x34]
mov dword [esp + 0x54], ecx
mov ecx, dword [esi + 0x30]
mov dword [esp + 4], ecx
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x14], ecx
mov ecx, dword [esi + 8]
mov dword [esp + 0x34], ecx
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x40], ecx
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x50], ecx
mov ecx, dword [esi + 0x44]
mov dword [esp + 0x4c], ecx
mov ecx, dword [eax + 0x14]
mov dword [esp], ecx
mov ecx, dword [eax + 0x18]
mov dword [esp + 0xc], ecx
mov ecx, dword [eax + 0x24]
mov dword [esp + 0x10], ecx
mov ecx, dword [eax + 0x2c]
cmp dword [esp + 0x24], 0
jne 0x49ab36
mov eax, dword [esp]
mov esi, dword [esp + 0xc]
test eax, eax
jne 0x49ab43
cmp esi, 2
jne 0x49aab6
mov ecx, dword [esp + 0x38]
cmp ecx, edi
je 0x49aa41
mov esi, dword [esp + 0x54]
add edi, 0xffffffe0
jmp 0x49a6fb
cmp edi, ecx
lea edi, [edi - 0x20]
je 0x49aa3b
mov eax, dword [esp + 4]
cmp eax, dword [edi + 0x10]
mov eax, esi
sbb eax, dword [edi + 0x14]
jae 0x49aa2f
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x14]
cmp eax, dword [edi + 8]
sbb edx, dword [edi + 0xc]
jae 0x49a6f0
mov edx, ebx
mov ebx, dword [esp + 0x40]
mov eax, dword [edi + 4]
cmp dword [edi], ebx
mov ebx, edx
sbb eax, dword [esp + 0x20]
jae 0x49a6f0
mov eax, dword [ebp + 8]
mov dword [eax + 0x24], edi
mov eax, dword [esp + 0x50]
mov ecx, dword [edi + 0x18]
mov edx, dword [eax + 0x10]
cmp ecx, edx
jae 0x49ab52
imul edx, ecx, 0x150
add edx, dword [eax + 0xc]
mov esi, dword [esp + 0x4c]
lea ecx, [esp + 0x98]
mov dword [esp], edx
push esi
call fcn.00496d90
add esp, 4
mov edx, dword [esp + 0x30]
mov eax, dword [esp]
cmp dword [esp + 0x98], 0
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x90], eax
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x94], esi
je 0x49a7c2
mov dword [esp + 8], 0
lea edx, [esp + 0x88]
lea eax, [esp + 0xa0]
lea ecx, [esp + 0x58]
push eax
call fcn.004971f0
mov edx, dword [esp + 0x34]
add esp, 4
jmp 0x49a811
lea ecx, [esp + 0xa0]
lea eax, [esp + 0x68]
mov dword [esp + 8], esi
movsd xmm0, qword [ecx + 0x20]
movsd xmm1, qword [ecx + 0x10]
movsd qword [eax + 0x18], xmm0
movsd xmm0, qword [ecx + 0x18]
movsd qword [eax + 8], xmm1
movsd qword [eax + 0x10], xmm0
movsd xmm0, qword [ecx + 8]
movsd qword [eax], xmm0
mov eax, dword [ecx + 4]
movsd xmm0, qword [ecx - 4]
mov ecx, dword [esp]
mov dword [esp + 0x60], eax
movsd qword [esp + 0x58], xmm0
mov dword [esp + 0x48], ecx
mov eax, dword [esp + 0x58]
mov dword [esp + 0x30], edx
mov esi, dword [esp + 8]
mov ecx, dword [esp + 0x64]
movsd xmm0, qword [esp + 0x78]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x2c], ecx
test esi, esi
mov dword [esp], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
mov dword [eax], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x48]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x24]
mov dword [eax + 0xc], esi
mov esi, dword [ebp + 8]
mov dword [eax + 0x10], edx
mov edx, dword [esp]
mov dword [eax + 0x14], edx
mov edx, dword [esp + 0xc]
mov dword [eax + 0x18], edx
mov dword [eax + 0x1c], ecx
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov dword [eax + 0x20], edx
mov dword [esp + 0x10], ecx
mov dword [eax + 0x24], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x1c], ecx
mov dword [eax + 0x28], ecx
mov ecx, dword [esp + 0x74]
mov dword [eax + 0x2c], ecx
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x84]
movsd qword [eax + 0x30], xmm0
mov dword [eax + 0x3c], ecx
mov ecx, dword [esp + 0x80]
mov dword [eax + 0x38], ecx
mov ecx, dword [esp + 0x28]
je 0x49a6b6
jmp 0x49a560
mov ecx, dword [eax + 0x2c]
test esi, esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], eax
je 0x49aa99
mov dword [esp + 0x28], ecx
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 4
mov dword [esp + 0xa0], 0
mov dword [esp], esi
mov edx, dword [esi + 0xc]
mov esi, 0
test edx, edx
je 0x49aa58
mov eax, dword [esp]
xor esi, esi
mov dword [esp + 0x20], 4
mov dword [esp + 0x44], ebx
mov ecx, dword [eax + 8]
mov edi, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 4], ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x40], eax
mov edi, edx
xor eax, eax
mov dword [esp + 0x34], edx
mov dword [esp + 0x14], esi
jmp 0x49a94c
mov edx, edi
mov edi, edx
sub edi, eax
jbe 0x49aa54
mov ecx, dword [esp + 4]
shr edi, 1
add edi, eax
lea ebx, [edi + edi*2]
cmp dword [ecx + ebx*8 + 0x10], esi
ja 0x49a940
jae 0x49a970
inc edi
mov eax, edi
jmp 0x49a942
mov ecx, dword [esp + 4]
lea esi, [ecx + ebx*8]
mov ecx, dword [esp + 0x30]
cmp ecx, dword [esi]
mov ecx, dword [esp + 0x3c]
sbb ecx, dword [esi + 4]
jae 0x49a98a
mov edx, edi
jmp 0x49a99d
mov eax, dword [esp + 0x30]
inc edi
mov ecx, dword [esp + 0x3c]
cmp eax, dword [esi + 8]
sbb ecx, dword [esi + 0xc]
jb 0x49a9a3
mov eax, edi
mov esi, dword [esp + 0x14]
jmp 0x49a942
mov eax, dword [esp + 4]
mov esi, dword [esp + 0x18]
mov ecx, dword [eax + ebx*8 + 0x14]
cmp ecx, dword [esp + 0x40]
mov eax, ecx
mov dword [esp + 0x38], ecx
jae 0x49ab61
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x44]
mov dword [esp + 0x18], esi
cmp edx, dword [esp + 0x98]
jne 0x49a9f0
lea ecx, [esp + 0x98]
call fcn.0049ef60
mov edx, dword [esp + 0x9c]
mov esi, dword [esp + 0xa0]
jmp 0x49a9f6
mov esi, edx
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x20], edx
lea eax, [eax + eax*4]
lea eax, [ecx + eax*8]
mov ecx, dword [esp + 4]
mov dword [edx + esi*4], eax
mov edx, dword [esp + 0x34]
lea eax, [edi + edi*2]
inc esi
mov dword [esp + 0xa0], esi
lea ecx, [ecx + eax*8]
sub edx, edi
mov dword [esp + 4], ecx
jne 0x49a931
jmp 0x49aa58
mov esi, dword [ebp + 8]
mov dword [esi + 0x24], edi
mov byte [esi + 0x38], 1
jmp 0x49aa41
mov eax, dword [ebp + 8]
mov dword [eax + 0x24], ecx
mov dword [esp], 0
mov eax, 3
xor edi, edi
jmp 0x49aae2
mov ebx, dword [esp + 0x44]
mov eax, dword [esp + 0x98]
xor edi, edi
mov dword [esp + 0x34], eax
mov eax, esi
mov esi, dword [esp + 0x9c]
lea eax, [esi + eax*4]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x40]
mov eax, dword [edx]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 8]
add eax, 8
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xc]
jmp 0x49aae2
mov esi, dword [esp + 0xc]
mov edx, dword [esp + 8]
cmp esi, 2
jne 0x49aab6
mov dword [esp], 0
mov eax, 3
xor edi, edi
jmp 0x49aae2
mov eax, dword [esp + 0x1c]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp], 0
xor edi, edi
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], edx
mov edx, esi
mov dword [esp + 0x1c], eax
mov eax, 4
mov dword [ebx], edi
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], ecx
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov dword [ebx + 0x10], edx
mov dword [ebx + 0x14], ecx
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 4]
mov dword [ebx + 0x18], edx
mov dword [ebx + 0x1c], ecx
mov edx, dword [esp + 0x20]
mov ecx, dword [esp]
mov dword [ebx + 0x20], edx
mov dword [ebx + 0x24], ecx
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
mov dword [ebx + 0x28], esi
mov dword [ebx + 0x2c], edx
mov dword [ebx + 0x30], esi
mov dword [ebx + 0x34], ecx
mov byte [ebx + 0x78], 2
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0xc]
jmp 0x49a633
mov dword [esp + 0x28], ecx
mov dword [esp + 8], edx
mov esi, eax
jmp 0x49a8d8
push 0x57d184
call fcn.004699c0
add esp, 4
jmp 0x49ab76
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x38]
push 0x57d1d0
call fcn.004699c0
add esp, 4
ud2