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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x6c]
cmp eax, dword [ecx + 8]
jbe 0x496dfb
sub esp, 0xec
mov edx, dword [esp + 0x10c]
cmp edx, 0x20
jne 0x4965bd
movsd xmm0, qword [esp + 0xfc]
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x48], xmm0
mov ebx, dword [esp + 0x48]
xor ebp, ebp
lea eax, [0x821918]
jmp 0x4965ec
cmp edx, 0x40
jne 0x496de2
movsd xmm0, qword [esp + 0xfc]
movsd qword [esp + 0x8c], xmm0
mov ebx, dword [esp + 0x8c]
mov ebp, dword [esp + 0x90]
lea eax, [0x821928]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebp
mov edx, dword [eax + 4]
mov dword [esp + 0x88], edx
mov esi, ebx
mov ebx, dword [eax]
mov dword [esp + 0x84], ebx
mov edi, ebp
lea ebp, [edx + ebx]
mov dword [esp + 0x80], ebp
cmp ebp, 0x20
sbb ebp, ebp
mov dword [esp + 0x7c], ebp
lea edx, [ebx + edx - 0x20]
mov dword [esp + 0x78], edx
neg edx
cmp edx, 0x20
sbb ebx, ebx
mov dword [esp + 0x74], ebx
mov ebx, dword [esp + 0x78]
cmp ebx, 0x20
sbb ebx, ebx
mov ecx, edx
mov edx, edi
shl edi, cl
mov ecx, dword [esp + 0x80]
shr esi, cl
and esi, ebp
mov ebp, dword [esp + 0x74]
and ebp, edi
or esi, ebp
mov ebp, ecx
mov ecx, dword [esp + 0x78]
mov edi, edx
shr edx, cl
and ebx, edx
or ebx, esi
test ebx, ebx
setne dl
mov ecx, ebp
shr edi, cl
mov ebp, dword [esp + 0x7c]
test ebp, edi
xchg ebp, ebx
setne bl
xchg ebp, ebx
mov ebx, dword [esp + 0x84]
cmp ebx, 0x20
mov esi, edx
sbb edx, edx
mov dword [esp + 0x7c], edx
mov edi, ebp
mov ebp, dword [esp + 0x88]
cmp ebp, 0x20
sbb ebp, ebp
mov dword [esp + 0x70], ebp
lea ebp, [ebx - 0x20]
mov dword [esp + 0x78], ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
mov dword [esp + 0x74], ebp
cmp ebp, 0x20
sbb edx, edx
mov dword [esp + 0x6c], edx
mov ebx, dword [esp + 0x78]
cmp ebx, 0x20
sbb ebx, ebx
mov dword [esp + 0x68], ebx
mov ecx, ebp
mov ebx, 1
shr ebx, cl
and ebx, edx
mov ecx, dword [esp + 0x78]
mov edx, 1
shl edx, cl
mov ebp, dword [esp + 0x68]
and edx, ebp
or edx, ebx
mov dword [esp + 0x64], edx
mov ecx, dword [esp + 0x84]
mov ebp, 1
shl ebp, cl
mov ebx, dword [esp + 0x7c]
and ebp, ebx
mov dword [esp + 0x7c], ebp
add ebp, 0xffffffff
mov dword [esp + 0x60], ebp
adc edx, 0xffffffff
mov dword [esp + 0x5c], edx
or edi, esi
mov esi, ecx
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x54]
shl edx, cl
mov ebp, dword [esp + 0x6c]
and edx, ebp
mov ecx, esi
mov ebp, dword [esp + 0x50]
mov esi, ebp
shr ebp, cl
and ebp, ebx
or ebp, edx
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x54]
mov ebx, edx
shr edx, cl
mov ecx, ebx
mov ebx, dword [esp + 0x68]
and edx, ebx
or edx, ebp
mov ebx, ecx
mov ecx, dword [esp + 0x88]
mov ebp, 1
shl ebp, cl
mov ecx, ebx
mov ebx, dword [esp + 0x70]
and ebx, ebp
dec ebx
and edx, ebx
mov ebp, dword [esp + 0x60]
and ebp, esi
mov esi, ebp
mov ebp, dword [esp + 0x5c]
and ebp, ecx
cmp edx, ebx
jne 0x49686a
test esi, esi
setne al
test ebp, ebp
setne cl
or ecx, eax
test cl, cl
je 0x496790
mov eax, 3
lea ecx, [0x68550c]
jmp 0x4967ae
xchg edi, eax
test al, al
xchg edi, eax
je 0x4967a3
mov eax, 4
lea ecx, [0x68577c]
jmp 0x4967ae
mov eax, 4
lea ecx, [0x685774]
mov edx, dword [esp + 0xf4]
lea ebx, [edx + eax]
mov ebp, dword [esp + 0xf8]
cmp ebp, ebx
jb 0x4967cc
mov esi, dword [esp + 0xf0]
jmp 0x49681e
mov dword [esp + 0xcc], ecx
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0xf0]
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], eax
lea ecx, [0x64f480]
mov dword [esp + 0x10], ecx
call fcn.0044a110
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0xf4]
mov esi, eax
mov ebp, ecx
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0xcc]
mov dword [esp + 0x70], ebx
mov dword [esp + 0xd4], esi
mov dword [esp + 0x58], ebp
add edx, esi
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.00463000
mov eax, dword [esp + 0xd4]
mov dword [esp + 0x110], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x118], eax
add esp, 0xec
ret
test edx, edx
jne 0x496875
mov edx, 1
jmp 0x496881
mov ecx, dword [esp + 0x64]
or ebp, ecx
mov ecx, dword [esp + 0x7c]
or esi, ecx
add edx, dword [eax + 8]
movzx ecx, byte [esp + 0x104]
cmp cl, 0x62
je 0x496d7f
cmp cl, 0x78
je 0x49689f
cmp cl, 0x58
jne 0x496911
mov ebx, dword [esp + 0xf0]
mov dword [esp], ebx
mov ebx, dword [esp + 0xf4]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0xf8]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0x108]
mov dword [esp + 0xc], ebx
mov byte [esp + 0x10], cl
xchg edi, eax
mov byte [esp + 0x11], al
xchg edi, eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
call fcn.004981f0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x110], eax
mov dword [esp + 0x114], ecx
mov dword [esp + 0x118], edx
add esp, 0xec
ret
movzx ebx, byte [0x8215e2]
test bl, bl
je 0x496d0d
mov dword [esp + 0xd0], eax
xchg edi, eax
mov byte [esp + 0x3b], al
xchg edi, eax
mov ebx, edi
lea edi, [esp + 0xd8]
xor eax, eax
call fcn.0046290b
mov ecx, dword [esp + 0x108]
test ecx, ecx
jl 0x496b85
mov dword [esp + 0x44], ebp
mov edi, edx
movzx edx, byte [esp + 0x104]
cmp dl, 0x66
je 0x496af5
cmp dl, 0x47
ja 0x496982
cmp dl, 0x45
je 0x496987
cmp dl, 0x47
jne 0x496976
test ecx, ecx
jmp 0x4969a9
mov ebp, dword [esp + 0x10c]
cmp ebp, 0x20
jmp 0x4969d8
cmp dl, 0x65
jne 0x4969a2
lea ebp, [ecx + 1]
mov edx, dword [esp + 0x10c]
cmp edx, 0x20
movzx edx, byte [esp + 0x104]
mov dword [esp + 0x70], ecx
jmp 0x4969e1
cmp dl, 0x67
jne 0x4969ce
test ecx, ecx
jne 0x4969bc
mov ebp, dword [esp + 0x10c]
cmp ebp, 0x20
mov ebp, 1
jmp 0x4969c8
mov ebp, dword [esp + 0x10c]
cmp ebp, 0x20
mov ebp, ecx
mov dword [esp + 0x70], ebp
jmp 0x4969e1
mov ebp, dword [esp + 0x10c]
cmp ebp, 0x20
mov ebp, 1
mov dword [esp + 0x70], ecx
mov dword [esp + 0x40], esi
mov dword [esp + 0x58], edi
lea edi, [esp + 0x94]
call fcn.0046290a
jne 0x496a62
cmp ebp, 9
jg 0x496a62
lea eax, [esp + 0x94]
mov dword [esp + 0xd8], eax
mov dword [esp + 0xdc], 0x18
mov dword [esp + 0xe0], 0x18
mov eax, dword [esp + 0xd0]
mov ecx, dword [eax]
lea edx, [esp + 0xd8]
mov dword [esp], edx
mov dword [esp + 4], esi
mov ebx, dword [esp + 0x58]
sub ebx, ecx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebp
call fcn.00498af0
movzx edx, byte [esp + 0x104]
movzx ebx, byte [esp + 0x3b]
mov esi, dword [esp + 0x40]
mov eax, 1
jmp 0x496adc
cmp ebp, 0x12
jg 0x496ad9
mov dword [esp + 0x4c], ebp
lea eax, [esp + 0x94]
mov dword [esp + 0xd8], eax
mov dword [esp + 0xdc], 0x18
mov dword [esp + 0xe0], 0x18
mov eax, dword [esp + 0xd0]
mov ecx, dword [eax]
lea edx, [esp + 0xd8]
mov dword [esp], edx
mov ebx, dword [esp + 0x44]
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov edi, dword [esp + 0x58]
sub edi, ecx
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], ebp
call fcn.00498e70
mov eax, dword [esp + 0x4c]
cmp eax, 0x12
movzx edx, byte [esp + 0x104]
movzx ebx, byte [esp + 0x3b]
mov esi, dword [esp + 0x40]
setle al
mov ebp, dword [esp + 0x44]
mov edi, dword [esp + 0x58]
mov byte [esp + 0x3a], al
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x108]
jmp 0x496aff
mov eax, ecx
xor eax, eax
mov byte [esp + 0x3a], al
mov eax, ecx
movzx ebp, byte [esp + 0x3a]
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x496b11
test eax, eax
jmp 0x496c95
mov eax, dword [esp + 0xf0]
mov dword [esp], eax
mov eax, dword [esp + 0xf4]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xf8]
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov byte [esp + 0x10], dl
mov byte [esp + 0x11], bl
mov eax, dword [esp + 0x44]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0xd0]
mov dword [esp + 0x20], eax
call fcn.00496e10
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x110], eax
mov dword [esp + 0x114], ecx
mov dword [esp + 0x118], edx
add esp, 0xec
ret
lea edi, [esp + 0xac]
call fcn.00462908
lea ecx, [esp + 0xac]
mov dword [esp + 0xd8], ecx
mov dword [esp + 0xdc], 0x20
mov dword [esp + 0xe0], 0x20
mov ecx, dword [esp + 0xd0]
mov ebx, dword [ecx]
mov eax, ecx
lea ecx, [esp + 0xd8]
mov dword [esp], ecx
mov dword [esp + 8], ebp
mov dword [esp + 4], esi
sub edx, ebx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
call fcn.00499ad0
movzx ecx, byte [esp + 0x104]
cmp cl, 0x47
ja 0x496c0e
cmp cl, 0x45
je 0x496c13
cmp cl, 0x47
jne 0x496c03
mov eax, dword [esp + 0x108]
test eax, eax
jmp 0x496c7a
mov eax, dword [esp + 0x108]
test eax, eax
jmp 0x496c8c
cmp cl, 0x65
jne 0x496c3a
mov eax, dword [esp + 0xe4]
dec eax
test eax, eax
jle 0x496c2a
mov edx, dword [esp + 0x108]
test edx, edx
jmp 0x496c8c
mov edx, dword [esp + 0x108]
test edx, edx
mov eax, 0
jmp 0x496c8c
cmp cl, 0x66
jne 0x496c6c
mov eax, dword [esp + 0xe4]
sub eax, dword [esp + 0xe8]
test eax, eax
jle 0x496c5c
mov edx, dword [esp + 0x108]
test edx, edx
jmp 0x496c8c
mov edx, dword [esp + 0x108]
test edx, edx
mov eax, 0
jmp 0x496c8c
cmp cl, 0x67
jne 0x496c83
mov eax, dword [esp + 0x108]
test eax, eax
mov eax, dword [esp + 0xe4]
jmp 0x496c8c
mov eax, dword [esp + 0x108]
test eax, eax
mov edx, ecx
movzx ebx, byte [esp + 0x3b]
mov ecx, eax
mov dword [esp + 0x70], ecx
setl al
mov ebp, dword [esp + 0xf0]
mov dword [esp], ebp
mov ebp, dword [esp + 0xf4]
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0xf8]
mov dword [esp + 8], ebp
mov byte [esp + 0xc], al
mov byte [esp + 0xd], bl
lea edi, [esp + 0x10]
lea esi, [esp + 0xd8]
call fcn.00462dee
mov eax, dword [esp + 0x70]
mov dword [esp + 0x24], eax
mov byte [esp + 0x28], dl
call fcn.00497150
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x110], eax
mov dword [esp + 0x114], ecx
mov dword [esp + 0x118], edx
add esp, 0xec
ret
mov ebx, dword [esp + 0xf0]
mov dword [esp], ebx
mov ebx, dword [esp + 0xf4]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0xf8]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0x108]
mov dword [esp + 0xc], ebx
mov byte [esp + 0x10], cl
xchg edi, eax
mov byte [esp + 0x11], al
xchg edi, eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
call fcn.00496e10
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x110], eax
mov dword [esp + 0x114], ecx
mov dword [esp + 0x118], edx
add esp, 0xec
ret
mov ecx, dword [esp + 0xf0]
mov dword [esp], ecx
mov ecx, dword [esp + 0xf4]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0xf8]
mov dword [esp + 8], ecx
xchg edi, eax
mov byte [esp + 0xc], al
xchg edi, eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
call fcn.00498040
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x110], eax
mov dword [esp + 0x114], ecx
mov dword [esp + 0x118], edx
add esp, 0xec
ret
lea eax, [0x64f280]
mov dword [esp], eax
lea eax, [0x6ee6f0]
mov dword [esp + 4], eax
call fcn.004353d0
nop
call fcn.00461280
jmp fcn.00496570