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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c4
mov eax, dword [0x4ed214]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x194], esi
mov eax, dword [esi + 0x58]
cmp eax, 2
jl 0x496b15
cmp dword [esi + 4], 0
jne 0x496647
pop edi
pop esi
mov eax, 0xffffff76
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00476c36
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0x10]
test ebx, ebx
jl 0x496b15
mov edi, dword [ebp + 0xc]
jg 0x49665f
test edi, edi
jb 0x496b15
cmp ebx, dword [esi + 0x14]
jg 0x496b15
jl 0x496673
cmp edi, dword [esi + 0x10]
ja 0x496b15
cmp eax, 3
jl 0x4966a2
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x38]
cmp ebx, dword [ecx + eax*8 + 4]
jl 0x496699
jg 0x49668b
cmp edi, dword [ecx + eax*8]
jb 0x496699
cmp ebx, dword [ecx + eax*8 + 0xc]
jl 0x4966a2
jg 0x496699
cmp edi, dword [ecx + eax*8 + 8]
jb 0x4966a2
push esi
call fcn.00494710
add esp, 4
push dword [esi + 0x5c]
lea eax, [esi + 0x78]
mov dword [esi + 0x50], 0xffffffff
push eax
mov dword [esi + 0x54], 0xffffffff
call fcn.00471ba0
lea eax, [esi + 0x1e0]
push eax
call fcn.004a21a0
push ebx
push edi
push esi
call fcn.004956a0
add esp, 0x18
test eax, eax
je 0x496710
lea eax, [ebp - 0x16c]
mov dword [esi + 0x50], 0xffffffff
push eax
mov dword [esi + 0x54], 0xffffffff
call fcn.00471280
push esi
call fcn.00494710
add esp, 8
mov eax, 0xffffff77
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00476c36
mov esp, ebp
pop ebp
ret
push dword [esi + 0x5c]
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x188], eax
mov dword [ebp - 0x170], eax
mov dword [ebp - 0x174], eax
lea eax, [ebp - 0x16c]
push eax
mov dword [ebp - 0x178], ebx
call fcn.004711c0
lea eax, [ebp - 0x16c]
push eax
call fcn.00471b10
add esp, 0xc
jmp 0x496756
mov ebx, dword [ebp - 0x178]
cmp dword [esi + 0x58], 3
jl 0x496821
lea eax, [ebp - 0x1c4]
push eax
lea eax, [ebp - 0x16c]
push eax
call fcn.00471d60
add esp, 8
test eax, eax
jle 0x496821
mov ecx, dword [esi + 0x60]
mov eax, dword [esi + 0x48]
shl ecx, 5
add eax, ecx
cmp dword [eax + 0x1c], 0
je 0x496813
lea ecx, [ebp - 0x1c4]
push ecx
push eax
call fcn.004a2bb0
mov edi, eax
add esp, 8
test edi, edi
jns 0x4967bb
lea eax, [esi + 0x78]
push 0
push eax
call fcn.00471d60
add esp, 8
xor edi, edi
jmp 0x4967ed
cmp dword [ebp - 0x170], 0
je 0x4967dd
cmp dword [ebp - 0x174], 0
jne 0x4967dd
lea eax, [esi + 0x78]
push 0
push eax
call fcn.00471d60
add esp, 8
jmp 0x4967ed
test ebx, ebx
je 0x4967ed
lea eax, [edi + ebx]
sar eax, 2
add dword [ebp - 0x188], eax
mov ecx, dword [ebp - 0x1b4]
mov eax, ecx
mov ebx, dword [ebp - 0x1b0]
and eax, ebx
cmp eax, 0xffffffff
jne 0x496976
mov ebx, edi
mov dword [ebp - 0x178], ebx
jmp 0x496756
lea eax, [esi + 0x78]
push 0
push eax
call fcn.00471d60
add esp, 8
test ebx, ebx
jne 0x496ade
push 0xffffffffffffffff
push 0xffffffffffffffff
lea eax, [ebp - 0x1a4]
push eax
push esi
call fcn.00494dd0
mov ecx, edx
mov dword [ebp - 0x180], eax
add esp, 0x10
mov dword [ebp - 0x184], ecx
test ecx, ecx
jl 0x496acb
jg 0x49685d
test eax, eax
jb 0x496acb
cmp dword [esi + 0x58], 3
jl 0x4968a9
lea eax, [ebp - 0x1a4]
push eax
call fcn.00471190
add esp, 4
cmp dword [esi + 0x5c], eax
je 0x49689f
lea eax, [ebp - 0x1a4]
push eax
call fcn.004710c0
add esp, 4
test eax, eax
je 0x49689f
push esi
call fcn.00494710
lea eax, [ebp - 0x16c]
push eax
call fcn.00471280
add esp, 8
cmp dword [esi + 0x58], 3
jge 0x496939
lea eax, [ebp - 0x1a4]
push eax
call fcn.00471190
mov ecx, dword [esi + 0x34]
add esp, 4
xor edi, edi
mov ebx, eax
test ecx, ecx
jle 0x4968d2
mov eax, dword [esi + 0x40]
cmp dword [eax], ebx
je 0x4968d2
inc edi
add eax, 4
cmp edi, ecx
jl 0x4968c6
cmp edi, ecx
je 0x496750
lea eax, [esi + 0x78]
mov dword [esi + 0x60], edi
push ebx
push eax
mov dword [esi + 0x5c], ebx
call fcn.00471ba0
lea eax, [ebp - 0x16c]
push ebx
push eax
call fcn.00471ba0
mov eax, dword [esi + 0x3c]
add esp, 0x10
mov ecx, dword [ebp - 0x184]
mov dword [esi + 0x58], 3
cmp ecx, dword [eax + edi*8 + 4]
jg 0x496929
jl 0x49691d
mov ecx, dword [ebp - 0x180]
cmp ecx, dword [eax + edi*8]
ja 0x496929
mov dword [ebp - 0x174], 1
jmp 0x496933
mov dword [ebp - 0x174], 0
mov ebx, dword [ebp - 0x178]
lea eax, [ebp - 0x1a4]
push eax
lea eax, [esi + 0x78]
push eax
call fcn.00471700
lea eax, [ebp - 0x1a4]
push eax
lea eax, [ebp - 0x16c]
push eax
call fcn.00471700
lea eax, [ebp - 0x1a4]
push eax
call fcn.004710e0
add esp, 0x14
mov dword [ebp - 0x170], eax
jmp 0x496756
mov eax, dword [esi + 0x60]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x180], eax
shl eax, 4
sub ecx, dword [eax + edi]
sbb ebx, dword [eax + edi + 4]
mov dword [ebp - 0x174], ebx
test ebx, ebx
jg 0x4969b9
jl 0x49699c
test ecx, ecx
jae 0x4969b9
xorps xmm0, xmm0
movlpd qword [ebp - 0x190], xmm0
mov ebx, dword [ebp - 0x18c]
mov ecx, dword [ebp - 0x190]
mov dword [ebp - 0x174], ebx
xorps xmm0, xmm0
xor edx, edx
cmp dword [esi + 0x60], 2
movlpd qword [ebp - 0x17c], xmm0
movlpd qword [ebp - 0x190], xmm0
jl 0x496a4d
mov edx, dword [ebp - 0x180]
lea eax, [edi + 0x18]
mov edi, dword [ebp - 0x190]
add edx, 0xfffffffe
mov esi, dword [ebp - 0x178]
mov ebx, dword [ebp - 0x17c]
shr edx, 1
inc edx
mov dword [ebp - 0x170], edx
add edx, edx
mov dword [ebp - 0x180], edx
mov edx, dword [ebp - 0x18c]
nop dword [eax]
add ebx, dword [eax - 0x10]
adc esi, dword [eax - 0xc]
add edi, dword [eax]
adc edx, dword [eax + 4]
lea eax, [eax + 0x20]
sub dword [ebp - 0x170], 1
jne 0x496a10
mov dword [ebp - 0x178], ebx
mov ebx, dword [ebp - 0x174]
mov dword [ebp - 0x184], esi
mov esi, dword [ebp - 0x194]
mov dword [ebp - 0x170], edx
mov edx, dword [ebp - 0x180]
jmp 0x496a77
mov eax, dword [ebp - 0x178]
mov edi, dword [ebp - 0x190]
mov dword [ebp - 0x184], eax
mov eax, dword [ebp - 0x17c]
mov dword [ebp - 0x178], eax
mov eax, dword [ebp - 0x18c]
mov dword [ebp - 0x170], eax
cmp edx, dword [esi + 0x60]
jge 0x496a8a
mov eax, dword [esi + 0x44]
shl edx, 4
add ecx, dword [edx + eax + 8]
adc ebx, dword [edx + eax + 0xc]
mov eax, dword [ebp - 0x188]
cdq
sub edi, eax
mov eax, dword [ebp - 0x170]
sbb eax, edx
add edi, dword [ebp - 0x178]
adc eax, dword [ebp - 0x184]
add edi, ecx
mov dword [esi + 0x50], edi
adc eax, ebx
mov dword [esi + 0x54], eax
test eax, eax
jg 0x496aec
jl 0x496abb
test edi, edi
jae 0x496aec
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
jmp 0x496aec
push 0xffffffffffffffff
push esi
call fcn.00496560
add esp, 8
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], edx
jmp 0x496aec
mov dword [esi + 0x50], 0xffffffff
mov dword [esi + 0x54], 0xffffffff
lea eax, [ebp - 0x16c]
push eax
call fcn.00471280
add esp, 4
xorps xmm0, xmm0
movups xmmword [esi + 0x68], xmm0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00476c36
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0xffffff7d
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00476c36
mov esp, ebp
pop ebp
ret