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

Disassembly:
sub esp, 0xa8
or eax, 0xffffffff
push ebx
push ebp
push esi
mov esi, ecx
mov cl, byte [esp + 0xdc]
push edi
test cl, cl
jne 0x496882
mov dword [esi + 0xb0], eax
mov dword [esi + 0xb4], eax
mov dword [esi + 0xb8], eax
mov dword [esi + 0xbc], eax
mov eax, dword [esp + 0xdc]
test eax, eax
jne 0x49689f
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0xa8
ret 0x38
mov ebp, dword [esp + 0xc4]
mov ecx, esi
push ebp
call fcn.00495140
mov eax, dword [esp + 0xc0]
mov ecx, dword [esp + 0xbc]
push eax
push ecx
mov ecx, esi
call fcn.00495180
test al, al
jne 0x4968db
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0xa8
ret 0x38
mov edx, dword [esp + 0xcc]
mov eax, dword [esp + 0xc8]
push edx
push eax
mov ecx, esi
call fcn.00495180
test al, al
jne 0x496908
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0xa8
ret 0x38
mov ecx, dword [esp + 0xbc]
mov ebx, dword [esp + 0xd0]
mov edx, dword [esp + 0xc0]
mov eax, dword [esp + 0xc8]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0xcc]
test ebx, ebx
mov dword [esp + 0x30], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
jl 0x496972
mov edx, dword [0x6633d4]
push ebx
mov ecx, dword [edx + 0x420]
call fcn.005ebae0
test eax, eax
mov dword [esp + 0x4c], eax
je 0x49697a
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push 0
push ecx
push edx
mov ecx, eax
call fcn.0052bce0
fld st(0)
fmulp st(1)
jmp 0x496998
mov dword [esp + 0x4c], 0
fld dword [esp + 0x2c]
fsub dword [esp + 0x10]
fld dword [esp + 0x30]
fsub dword [esp + 0x14]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fstp st(2)
fstp st(0)
fld dword [esp + 0xc4]
fadd dword [esp + 0xd4]
fst dword [esp + 0x70]
fld st(0)
fmul st(1)
fxch st(1)
fxch st(2)
fcompp
fnstsw ax
test ah, 0x41
fstp st(0)
je 0x4969cc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xa8
ret 0x38
push 0x100
mov ecx, esi
call fcn.004950a0
fld dword [esp + 0xc4]
fcomp dword [0x61b584]
fnstsw ax
test ah, 0x41
jne 0x496a01
fld dword [0x620e18]
fmul dword [esp + 0xc4]
push ecx
fstp dword [esp]
push 1
jmp 0x496a05
push 0
push 0
mov ecx, dword [esi]
call fcn.0049c6c0
mov ecx, dword [esi]
call fcn.0049c090
mov eax, dword [esi + 0x8c]
mov ecx, dword [esi + 0x94]
mov dl, byte [esi + 0x88]
push eax
push ecx
mov ecx, dword [esi]
push edx
call fcn.0049c640
mov edi, dword [esp + 0xf0]
test edi, edi
je 0x496a3f
cmp edi, 1
jne 0x496ab9
mov eax, dword [esp + 0xec]
mov ecx, dword [esp + 0xe8]
mov edx, dword [esp + 0xe4]
push eax
mov eax, dword [esp + 0xe0]
push ecx
mov ecx, dword [esp + 0xe0]
push edx
push eax
push ebp
push ebx
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x48]
push edx
push eax
mov ecx, esi
call fcn.004964b0
test al, al
je 0x496aa2
mov ecx, dword [esi]
call fcn.0049c090
mov ecx, dword [esi]
push 0
push 0
call fcn.0049c6c0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xa8
ret 0x38
cmp edi, 1
jne 0x496ab9
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0xa8
ret 0x38
mov al, byte [esp + 0xe0]
xor ebp, ebp
test al, al
mov dword [esp + 0x58], ebp
mov dword [esp + 0x20], ebp
mov ebx, 2
je 0x496ae0
cmp dword [esi + 0xb0], 0xffffffff
jne 0x496bdf
fld dword [esp + 0x2c]
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 1
je 0x496b04
fld dword [esp + 0x2c]
call fcn.005faa4c
fld dword [esp + 0x10]
mov dword [esi + 0xb0], eax
jmp 0x496b17
fld dword [esp + 0x10]
call fcn.005faa4c
fld dword [esp + 0x2c]
mov dword [esi + 0xb0], eax
call fcn.005faa4c
fld dword [esp + 0x30]
fcomp dword [esp + 0x14]
mov dword [esi + 0xb8], eax
fnstsw ax
test ah, 1
je 0x496b46
fld dword [esp + 0x30]
call fcn.005faa4c
fld dword [esp + 0x14]
mov dword [esi + 0xb4], eax
jmp 0x496b59
fld dword [esp + 0x14]
call fcn.005faa4c
fld dword [esp + 0x30]
mov dword [esi + 0xb4], eax
call fcn.005faa4c
mov edi, dword [esi + 0xb0]
mov edx, 0xfffffffe
mov ecx, dword [esi + 0xb8]
add edi, edx
mov dword [esi + 0xbc], eax
mov dword [esi + 0xb0], edi
mov eax, edi
mov edi, dword [esi + 0xb4]
add edi, edx
mov edx, dword [esi + 0xbc]
add ecx, ebx
add edx, ebx
cmp eax, ebp
mov dword [esi + 0xb8], ecx
mov dword [esi + 0xb4], edi
mov dword [esi + 0xbc], edx
mov ebx, edx
jge 0x496baf
mov dword [esi + 0xb0], ebp
mov edx, dword [esi]
mov eax, dword [edx + 8]
cmp ecx, eax
jl 0x496bbf
dec eax
mov dword [esi + 0xb8], eax
cmp edi, ebp
jge 0x496bc9
mov dword [esi + 0xb4], ebp
mov eax, dword [edx + 0xc]
cmp ebx, eax
jl 0x496bd7
dec eax
mov dword [esi + 0xbc], eax
mov byte [esp + 0xe0], 0
cmp dword [esp + 0x4c], ebp
jne 0x496c52
mov ecx, dword [esp + 0xec]
mov edx, dword [esp + 0xe8]
mov eax, dword [esp + 0xe4]
push ecx
mov ecx, dword [esi + 0xa8]
push edx
mov edx, dword [esi + 0xac]
push eax
mov eax, dword [esp + 0x20]
lea edi, [esi + 0xa4]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push edi
push 0x20
push ebp
push ebp
push eax
push ecx
mov ecx, dword [esi]
call fcn.0049d330
mov edi, dword [edi]
xor eax, eax
cmp edi, ebp
jle 0x496c52
mov edx, dword [esi + 0xac]
mov ecx, edx
mov ebx, dword [ecx]
cmp dword [ebx + 8], ebp
jne 0x496c48
inc eax
add ecx, 4
cmp eax, edi
jl 0x496c37
jmp 0x496c52
mov edx, dword [edx + eax*4]
mov eax, dword [edx + 8]
mov dword [esp + 0x4c], eax
push ebp
mov ecx, esi
call fcn.00494af0
fld dword [esp + 0x2c]
fsub dword [esp + 0x10]
fld dword [esp + 0x30]
fsub dword [esp + 0x14]
mov ebx, dword [esp + 0x58]
mov dword [esp + 0x1c], ebp
mov byte [esp + 0x1b], 0
mov dword [esp + 0x44], 0xffffffff
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
mov byte [esp + 0x19], 0
mov byte [esp + 0x1a], 0
faddp st(1)
fsqrt
fstp dword [esp + 0x54]
fstp st(0)
fstp st(0)
mov eax, dword [esi + 0x10]
mov ebp, dword [esp + 0xc4]
cmp ebx, eax
jge 0x49771d
mov edi, dword [esp + 0x20]
cmp edi, 1
jg 0x49771d
push 0
mov ecx, esi
call fcn.00494d10
mov al, byte [esp + 0xe0]
test al, al
jne 0x496cfc
test edi, edi
jne 0x496cfc
mov ecx, dword [esp + 0xec]
mov edx, dword [esp + 0xe8]
mov eax, dword [esp + 0xe4]
push ecx
mov ecx, dword [esp + 0xdc]
push edx
push eax
push ebp
push ecx
mov ecx, esi
call fcn.004951f0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
lea edx, [esp + 0x1c]
push 0xffffffffffffffff
lea eax, [esp + 0x3c]
push edx
push eax
push 0
push 1
push 0
mov ecx, esi
call fcn.00495e80
test eax, eax
mov dword [esp + 0x68], eax
je 0x497678
mov eax, dword [esi + 4]
xor edi, edi
test eax, eax
jle 0x496d51
mov ecx, dword [esp + 0x30]
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0x2c]
push ecx
mov ecx, dword [eax + edi*4]
push edx
call fcn.00493850
test al, al
jne 0x496d54
mov eax, dword [esi + 4]
inc edi
cmp edi, eax
jl 0x496d30
or edi, 0xffffffff
mov eax, dword [esi + 4]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x38], edi
jle 0x496d86
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0x10]
push ecx
mov ecx, dword [eax + ebx*4]
push edx
call fcn.00493850
test al, al
jne 0x49707a
mov eax, dword [esi + 4]
inc ebx
cmp ebx, eax
jl 0x496d61
mov dword [esp + 0x3c], 0xffffffff
test edi, edi
mov byte [esp + 0x19], 0
mov byte [esp + 0x27], 1
jl 0x496fa9
cmp edi, dword [esp + 0x3c]
jne 0x496e3a
mov edx, dword [esp + 0xec]
mov eax, dword [esp + 0xdc]
lea ecx, [esp + 0x27]
mov ebx, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0xec]
push edx
lea edx, [esp + 0xb4]
push ecx
mov ecx, dword [esp + 0xe4]
push edx
mov edx, dword [esp + 0xe4]
push 1
push 0
mov dword [eax + 0xc], 0
push eax
mov eax, dword [esp + 0x100]
push eax
push 0
push 0x40
push ecx
push edx
mov edx, dword [esi + 0xc]
push ebp
lea eax, [esp + 0x44]
push ebx
push eax
mov eax, dword [edx + edi*4]
lea ecx, [esp + 0x68]
push ecx
push eax
mov ecx, esi
call fcn.004979f0
test eax, eax
je 0x49769c
cmp eax, 3
je 0x4976d7
mov cl, byte [esp + 0x27]
test cl, cl
je 0x4976d7
cmp eax, 1
jne 0x496e3a
mov byte [esp + 0x19], al
xor ebx, ebx
mov ecx, esi
mov dword [esp + 0x28], ebx
call fcn.00498110
mov edx, dword [esp + 0xec]
mov eax, dword [esp + 0xe8]
lea ecx, [esp + 0x5f]
push ecx
push edx
mov edx, dword [esi + 0xc0]
lea ecx, [esp + 0x30]
push eax
mov eax, dword [esp + 0xf0]
push ecx
mov ecx, dword [esp + 0xe8]
push 4
push ebx
push edx
mov edx, dword [esp + 0xf0]
push eax
push 1
push 0x40
push ecx
mov ecx, dword [esi + 0xc]
push edx
push ebp
push ebx
mov edx, dword [ecx + edi*4]
lea eax, [esp + 0x64]
push ebx
push eax
push edx
mov ecx, esi
call fcn.004979f0
cmp dword [esp + 0x28], 1
jl 0x4976fb
mov eax, dword [esp + 0x68]
mov ecx, esi
push eax
push ebx
call fcn.00496330
mov eax, dword [esp + 0x28]
mov dword [esp + 0x34], ebx
cmp eax, ebx
jle 0x496fa9
mov ecx, dword [esi + 0xc0]
mov ecx, dword [ebx + ecx + 0xc]
cmp ecx, 2
jl 0x496f8a
mov eax, dword [esp + 0x68]
mov ebp, 1
dec ecx
cmp ecx, ebp
mov dword [esp + 0x40], ecx
jle 0x496f3f
mov edi, 0xc
mov edx, dword [esi + 0xc0]
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
lea ecx, [ebx + edx + 0x14]
mov edx, dword [ebx + edx + 0x14]
fld dword [edx + edi]
mov edx, dword [esp + 0x44]
fstp dword [esp + 0x6c]
mov ecx, dword [ecx]
push edx
lea edx, [esp + 0x70]
fld dword [ecx + edi + 8]
lea ecx, [esp + 0x20]
fstp dword [esp + 0x74]
push ecx
push edx
push eax
push 0
push 0
mov ecx, esi
call fcn.00495e80
test eax, eax
je 0x496f8a
mov ecx, dword [esp + 0x40]
inc ebp
add edi, 0xc
cmp ebp, ecx
jl 0x496eef
test eax, eax
je 0x496f8a
mov ecx, dword [esi + 0xc0]
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
mov edi, dword [ebx + ecx + 0x14]
lea edx, [ebx + ecx + 0x14]
lea ecx, [ebp + ebp*2]
shl ecx, 2
fld dword [ecx + edi]
fstp dword [esp + 0x6c]
mov edx, dword [edx]
fld dword [ecx + edx + 8]
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x1c]
fstp dword [esp + 0x70]
push ecx
lea ecx, [esp + 0x70]
push edx
push ecx
push eax
push 1
push 0
mov ecx, esi
call fcn.00495e80
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
inc eax
add ebx, 0x34
cmp eax, ecx
mov dword [esp + 0x34], eax
jl 0x496ec5
mov ebp, dword [esp + 0xc4]
mov edi, dword [esp + 0x3c]
mov byte [esp + 0x1a], 0
test edi, edi
jl 0x4971d7
mov ecx, esi
call fcn.00498130
mov edx, dword [esi + 0xc]
mov ecx, dword [edx + edi*4]
call fcn.00493b20
mov ecx, dword [esp + 0xec]
mov edx, dword [esp + 0xe8]
lea eax, [esp + 0x5e]
mov dword [esp + 0x50], 0
push eax
push ecx
lea eax, [esp + 0x58]
push edx
mov edx, dword [esi + 0xc4]
push eax
mov eax, dword [esp + 0xf4]
lea ecx, [esp + 0x84]
push 4
push ecx
mov ecx, dword [esp + 0xf0]
push edx
mov edx, dword [esp + 0xf0]
push eax
push 0
push 0x40
push ecx
mov ecx, dword [esi + 0xc]
push edx
push ebp
mov edx, dword [ecx + edi*4]
push 0
lea eax, [esp + 0x48]
push 0
push eax
push edx
mov ecx, esi
call fcn.004979f0
cmp eax, 5
jne 0x49703d
mov byte [esp + 0x1a], 1
mov ebx, dword [esp + 0x50]
xor eax, eax
test ebx, ebx
jle 0x497058
lea ecx, [esp + 0x9c]
mov dword [ecx], eax
inc eax
add ecx, 4
cmp eax, ebx
jl 0x49704e
xor ecx, ecx
test ebx, ebx
jle 0x497161
mov eax, dword [esi + 0xc]
mov edx, dword [eax + edi*4]
mov eax, dword [esi + 0xc4]
mov dword [esp + 0x40], edx
add eax, 0x14
mov ebp, dword [edx + 4]
jmp 0x497087
mov dword [esp + 0x3c], ebx
jmp 0x496d8e
mov edx, dword [esp + 0x40]
mov edi, dword [esp + ecx*4 + 0x74]
test edi, edi
jne 0x497091
mov edi, dword [edx]
mov edx, dword [eax - 8]
mov ebx, dword [eax]
dec edi
inc ecx
lea edx, [edx + edx*2]
add eax, 0x34
fld dword [ebx + edx*4 - 0xc]
fsub dword [ebp + edi*8]
fld dword [ebx + edx*4 - 4]
lea edx, [ebx + edx*4 - 0xc]
mov ebx, dword [esp + 0x50]
fsub dword [ebp + edi*8 + 4]
cmp ecx, ebx
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fstp dword [esp + ecx*4 + 0x80]
fstp st(0)
fstp st(0)
jl 0x497083
test ebx, ebx
jle 0x497161
mov ecx, 1
xor edx, edx
mov dword [esp + 0x34], ecx
cmp ecx, ebx
jge 0x497152
mov edi, dword [esp + edx + 0x74]
mov ebp, dword [esp + ecx*4 + 0x74]
cmp edi, ebp
jg 0x497109
jne 0x497149
fld dword [esp + edx + 0x84]
fcomp dword [esp + ecx*4 + 0x84]
fnstsw ax
test ah, 0x41
jne 0x497149
mov eax, dword [esp + ecx*4 + 0x84]
mov dword [esp + edx + 0x74], ebp
fld dword [esp + edx + 0x84]
mov dword [esp + ecx*4 + 0x74], edi
mov edi, dword [esp + ecx*4 + 0x9c]
mov dword [esp + edx + 0x84], eax
mov eax, dword [esp + edx + 0x9c]
fstp dword [esp + ecx*4 + 0x84]
mov dword [esp + edx + 0x9c], edi
mov dword [esp + ecx*4 + 0x9c], eax
inc ecx
cmp ecx, ebx
jl 0x4970e6
mov ecx, dword [esp + 0x34]
inc ecx
add edx, 4
mov dword [esp + 0x34], ecx
lea eax, [ecx - 1]
cmp eax, ebx
jl 0x4970e2
xor ebp, ebp
xor edi, edi
test ebx, ebx
jle 0x4971d7
mov eax, dword [esp + edi*4 + 0x9c]
push eax
lea ecx, [eax + eax*2]
lea edx, [eax + ecx*4]
mov ecx, dword [esi + 0xc4]
mov eax, ebp
lea edx, [ecx + edx*4]
mov ecx, dword [edx + 0xc]
mov ebx, dword [edx + 0x14]
dec ecx
lea ecx, [ecx + ecx*2]
shl ecx, 2
fld dword [ebx + ecx]
fstp dword [esp + 0x98]
mov edx, dword [edx + 0x14]
fld dword [edx + ecx + 8]
mov ecx, dword [esp + edi*4 + 0x78]
mov edx, dword [esi + 0xc]
fstp dword [esp + 0x9c]
add eax, ecx
lea ecx, [esp + 0x98]
push eax
mov eax, dword [esp + 0x44]
push ecx
mov ecx, dword [edx + eax*4]
call fcn.00493ab0
mov eax, dword [esp + edi*4 + 0x74]
test eax, eax
je 0x4971ce
inc ebp
mov eax, dword [esp + 0x50]
inc edi
cmp edi, eax
jl 0x497169
mov ebx, dword [esp + 0x58]
mov eax, dword [esi + 0x10]
cmp ebx, eax
jge 0x496c9d
mov edi, dword [esi + 0x20]
inc ebx
test edi, edi
mov dword [esp + 0x58], ebx
je 0x49771d
mov ebp, edi
fld dword [ebp]
fcomp dword [esp + 0xc4]
fnstsw ax
test ah, 1
jne 0x49724d
mov ecx, dword [esi]
fild dword [ecx + 8]
fsub dword [esp + 0xc4]
fcomp dword [ebp]
fnstsw ax
test ah, 1
jne 0x49724d
fld dword [ebp + 4]
fcomp dword [esp + 0xc4]
fnstsw ax
test ah, 1
jne 0x49724d
fild dword [ecx + 0xc]
fsub dword [esp + 0xc4]
fcomp dword [ebp + 4]
fnstsw ax
test ah, 1
jne 0x49724d
mov ebp, dword [ebp + 8]
test ebp, ebp
jne 0x4971f8
jmp 0x49725f
push edi
push 0
mov ecx, esi
call fcn.00496330
test ebp, ebp
jne 0x4971d7
fild dword [esi + 0xb0]
fadd dword [esp + 0xc4]
fcomp dword [edi]
fnstsw ax
test ah, 0x41
je 0x4975da
mov ecx, dword [esi + 0xb8]
inc ecx
mov dword [esp + 0x40], ecx
fild dword [esp + 0x40]
fsub dword [esp + 0xc4]
fcomp dword [edi]
fnstsw ax
test ah, 1
jne 0x4975da
fild dword [esi + 0xb4]
fadd dword [esp + 0xc4]
fcomp dword [edi + 4]
fnstsw ax
test ah, 0x41
je 0x4975da
mov edx, dword [esi + 0xbc]
inc edx
mov dword [esp + 0x40], edx
fild dword [esp + 0x40]
fsub dword [esp + 0xc4]
fcomp dword [edi + 4]
fnstsw ax
test ah, 1
jne 0x4975da
push edi
push 0
mov ecx, esi
call fcn.00496330
mov ebx, dword [esp + 0x4c]
test ebx, ebx
je 0x497322
mov eax, dword [edi + 4]
mov ecx, dword [edi]
push 0
push eax
push ecx
mov ecx, ebx
call fcn.0052bce0
fsub dword [esp + 0xc4]
fld dword [0x620de0]
fadd dword [esp + 0xd4]
fxch st(1)
fcompp
fnstsw ax
test ah, 0x41
jne 0x49765a
jmp 0x49735a
fld dword [edi]
fsub dword [esp + 0x10]
fld dword [edi + 4]
fsub dword [esp + 0x14]
fld dword [esp + 0x70]
fld st(1)
fmul st(2)
fld st(3)
fmul st(4)
faddp st(1)
fld st(1)
fmul st(2)
fadd dword [0x620de0]
fcompp
fstp st(0)
fnstsw ax
fstp st(0)
test ah, 1
fstp st(0)
je 0x497671
fld dword [edi + 0x14]
fcomp dword [esp + 0x54]
fnstsw ax
test ah, 1
je 0x497373
mov edx, dword [edi + 0x14]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x54], edx
mov dword [esp + 0x48], 0xffffffff
mov edx, dword [edi + 0x20]
test edx, edx
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x48]
setge bl
push eax
lea edx, [esp + 0xb4]
push ecx
lea eax, [esp + 0x18]
test bl, bl
push edx
push eax
sete cl
push edi
push ecx
mov ecx, esi
call fcn.004963f0
test al, al
jne 0x497432
mov edx, dword [esp + 0xd8]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [edi + 4]
push eax
mov eax, dword [edi]
push ecx
mov ecx, dword [esi]
push edx
push eax
call fcn.0049c2d0
mov ecx, dword [esp + 0xec]
mov edx, dword [esp + 0xe8]
mov eax, dword [esp + 0xe4]
push ecx
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [edi + 4]
push 0x40
push ecx
mov ecx, dword [edi]
push edx
push eax
push ecx
mov ecx, dword [esi]
call fcn.0049c6e0
test al, al
je 0x497633
mov ebp, dword [esp + 0x3c]
test ebp, ebp
jl 0x497432
cmp ebp, dword [edi + 0x1c]
jne 0x497432
test bl, bl
je 0x497432
mov eax, dword [esi + 0xc]
mov edx, dword [edi + 0x20]
push edx
mov ecx, dword [eax + ebp*4]
call fcn.00493b40
test eax, eax
jge 0x49761c
mov eax, dword [esp + 0x48]
test eax, eax
jl 0x4971d7
cmp eax, dword [edi + 0x1c]
jne 0x49744e
mov ecx, dword [edi + 0x20]
test ecx, ecx
jge 0x4971d7
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0xc0]
push ecx
push edx
push edi
push 0
push 0
mov ecx, esi
call fcn.00495e80
mov ebx, eax
fld dword [ebx + 0x14]
fcomp dword [esp + 0x54]
fnstsw ax
test ah, 1
je 0x497489
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x54], eax
mov edx, dword [esi + 0xc]
mov ecx, dword [esp + 0x48]
mov eax, dword [edx + ecx*4]
mov edi, dword [eax]
mov eax, edi
mov dword [esp + 0x38], edi
cdq
sub eax, edx
mov edx, dword [esp + 0x6c]
sar eax, 1
lea ebp, [edx - 1]
test ebp, ebp
jge 0x4974ae
lea ebp, [edi - 1]
test eax, eax
mov edi, edx
mov dword [esp + 0x28], ebx
jle 0x49754a
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4974f8
mov eax, dword [esi + 0xc]
push 0
push 0xffffffffffffffff
push ebp
push ecx
mov ecx, dword [eax + ecx*4]
lea edx, [esp + 0x20]
push edx
mov edx, dword [ecx + 4]
mov ecx, dword [esp + 0x3c]
lea eax, [edx + ebp*8]
push eax
push ecx
push 1
push 0
mov ecx, esi
call fcn.00495e80
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x28], eax
test ebx, ebx
je 0x497526
mov eax, dword [esi + 0xc]
push 0
push 0xffffffffffffffff
push edi
push ecx
mov ecx, dword [eax + ecx*4]
lea edx, [esp + 0x20]
push edx
mov edx, dword [ecx + 4]
mov ecx, esi
lea eax, [edx + edi*8]
push eax
push ebx
push 1
push 0
call fcn.00495e80
mov ecx, dword [esp + 0x48]
mov ebx, eax
dec ebp
jns 0x497530
mov edx, dword [esp + 0x38]
lea ebp, [edx - 1]
mov eax, dword [esp + 0x38]
inc edi
cmp edi, eax
jl 0x49753b
xor edi, edi
mov eax, dword [esp + 0x34]
dec eax
mov dword [esp + 0x34], eax
jne 0x4974c0
mov eax, dword [esp + 0x38]
and eax, reloc.DPLAYX.dll_Ordinal_1
jns 0x49755a
dec eax
or eax, 0xfffffffe
inc eax
cmp eax, 1
jne 0x4971d7
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4975a9
test ebx, ebx
je 0x49757c
fld dword [eax + 0x18]
fcomp dword [ebx + 0x18]
fnstsw ax
test ah, 1
je 0x4975a9
mov eax, dword [esi + 0xc]
push 0
push 0xffffffffffffffff
push ebp
push ecx
mov ecx, dword [eax + ecx*4]
lea edx, [esp + 0x20]
push edx
mov edx, dword [ecx + 4]
mov ecx, dword [esp + 0x3c]
lea eax, [edx + ebp*8]
push eax
push ecx
push 1
push 0
mov ecx, esi
call fcn.00495e80
jmp 0x4971d7
test ebx, ebx
je 0x4971d7
mov eax, dword [esi + 0xc]
push 0
push 0xffffffffffffffff
push edi
push ecx
mov ecx, dword [eax + ecx*4]
lea edx, [esp + 0x20]
push edx
mov edx, dword [ecx + 4]
mov ecx, esi
lea eax, [edx + edi*8]
push eax
push ebx
push 1
push 0
call fcn.00495e80
jmp 0x4971d7
mov ecx, dword [esp + 0xec]
mov edx, dword [esp + 0xe8]
mov eax, dword [esp + 0xe4]
push ecx
mov ecx, dword [esp + 0xc8]
push edx
mov edx, dword [esp + 0xe0]
push eax
push ecx
push edx
push 2
mov ecx, esi
call fcn.00495610
test al, al
je 0x49771d
inc dword [esp + 0x20]
jmp 0x496c9d
mov ecx, dword [esi + 0xc]
mov eax, dword [edi + 0x20]
push eax
mov ecx, dword [ecx + ebp*4]
call fcn.00493b40
test eax, eax
mov dword [esp + 0x44], eax
jge 0x497653
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
lea edx, [esp + 0x1c]
push 0xffffffffffffffff
lea eax, [esp + 0x20]
push edx
push eax
push edi
push 0
push 0
mov ecx, esi
call fcn.00495e80
mov edi, eax
mov bl, 1
jmp 0x497725
test ebx, ebx
je 0x497721
mov eax, dword [esp + 0xd0]
test eax, eax
jl 0x497721
mov bl, 1
jmp 0x497725
mov ecx, dword [esi]
call fcn.0049c090
mov ecx, dword [esi]
push 0
push 0
call fcn.0049c6c0
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0xa8
ret 0x38
mov ecx, dword [esi]
call fcn.0049c090
mov ecx, dword [esi]
push 0
push 0
call fcn.0049c6c0
test ebx, ebx
je 0x496a90
mov eax, dword [esp + 0xd0]
test eax, eax
jg 0x496a90
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0xa8
ret 0x38
mov ecx, dword [esi]
call fcn.0049c090
mov ecx, dword [esi]
push 0
push 0
call fcn.0049c6c0
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0xa8
ret 0x38
mov ecx, dword [esi]
call fcn.0049c090
mov ecx, dword [esi]
push ebx
push ebx
call fcn.0049c6c0
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0xa8
ret 0x38
mov edi, dword [esp + 0x1c]
mov bl, byte [esp + 0x1b]
test edi, edi
mov dword [esp + 0x1c], 3
jne 0x49773d
mov al, byte [esp + 0x19]
test al, al
je 0x4979c6
test bl, bl
jne 0x4977b0
mov al, byte [esp + 0x19]
test al, al
je 0x4977b0
mov ebp, dword [esp + 0xdc]
test edi, edi
je 0x4978fa
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
lea ecx, [eax + eax*2]
fld dword [edx + ecx*4 - 0xc]
fsub dword [esp + 0x10]
fld dword [edx + ecx*4 - 4]
lea eax, [edx + ecx*4]
fsub dword [esp + 0x14]
fld st(1)
fmulp st(2)
fld st(0)
fmul st(1)
faddp st(2)
fstp st(0)
fld dword [edi]
fsub dword [esp + 0x10]
fld dword [edi + 4]
fsub dword [esp + 0x14]
fld st(1)
fmul st(2)
fld st(1)
fmul st(2)
faddp st(1)
fxch st(1)
fxch st(3)
fcompp
fxch st(1)
fstp st(0)
fstp st(0)
fnstsw ax
test ah, 0x41
jne 0x4978fa
jmp 0x4977b7
mov ebp, dword [esp + 0xdc]
mov eax, dword [esp + 0xec]
mov ecx, dword [esp + 0xe8]
mov edx, dword [esp + 0xe4]
push eax
mov eax, dword [esp + 0xdc]
push ecx
push edx
push eax
push edi
push ebp
mov ecx, esi
mov dword [ebp + 0xc], 0
call fcn.00498050
test bl, bl
je 0x4978fa
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1c], 1
test eax, eax
jl 0x4979c6
lea ecx, [eax + eax*2]
lea edx, [eax + ecx*4]
mov eax, dword [esi + 0xc4]
lea ebx, [eax + edx*4]
mov eax, dword [eax + edx*4 + 0xc]
sub eax, 2
js 0x497843
lea edi, [eax + eax*2]
shl edi, 2
inc eax
mov dword [esp + 0x44], eax
mov eax, dword [ebx + 0x14]
mov ecx, edi
add ecx, eax
push ecx
mov ecx, ebp
call fcn.004a7390
mov eax, dword [esp + 0x44]
sub edi, 0xc
dec eax
mov dword [esp + 0x44], eax
jne 0x497826
mov al, byte [esp + 0x1a]
test al, al
je 0x4979c6
mov edi, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
dec edi
mov ecx, dword [esp + 0xd8]
push ecx
lea ebx, [edi + edi*2]
shl ebx, 2
mov ecx, dword [ebx + edx - 0xc]
lea eax, [ebx + edx]
mov edx, dword [ebx + edx - 4]
push edx
mov edx, dword [eax + 8]
mov eax, dword [eax]
push ecx
mov ecx, dword [esi]
push edx
push eax
call fcn.0049c2d0
mov ecx, dword [ebp + 0x14]
mov edx, dword [esp + 0xec]
add ebx, ecx
mov ecx, dword [esp + 0xe8]
push edx
mov edx, dword [esp + 0xe8]
push ecx
mov ecx, dword [esi + 0xa8]
push edx
mov edx, dword [esi + 0xac]
lea eax, [esi + 0xa4]
push ecx
mov ecx, dword [ebx - 0xc]
push edx
mov edx, dword [ebx + 8]
push eax
mov eax, dword [ebx - 4]
push 0x40
push eax
mov eax, dword [ebx]
push ecx
mov ecx, dword [esi]
push edx
push eax
call fcn.0049d330
mov eax, dword [esi + 0xa4]
cmp eax, 1
jg 0x4978f2
jne 0x4979c6
mov ecx, dword [esi + 0xac]
mov eax, dword [esp + 0xd0]
mov edx, dword [ecx]
cmp dword [edx + 0x18], eax
je 0x4979c6
push edi
mov ecx, ebp
call fcn.004a7400
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
dec eax
mov dword [esp + 0x1c], 2
lea ecx, [eax + eax*2]
fld dword [edx + ecx*4]
fsub dword [esp + 0x2c]
lea ecx, [edx + ecx*4]
mov edx, Ordinal_2
fstp dword [esp + 0x20]
and dword [esp + 0x20], edx
fld dword [esp + 0x20]
fcomp dword [0x61c9a0]
fnstsw ax
test ah, 1
je 0x497963
fld dword [ecx + 8]
fsub dword [esp + 0x30]
fstp dword [esp + 0x20]
and dword [esp + 0x20], edx
fld dword [esp + 0x20]
fcomp dword [0x61c9a0]
fnstsw ax
test ah, 1
je 0x497963
mov dword [ebp + 0xc], 0
mov dword [esp + 0x1c], 3
fld dword [ecx]
fsub dword [esp + 0x10]
fld dword [ecx + 8]
fsub dword [esp + 0x14]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fstp st(2)
fstp st(0)
fld dword [esp + 0xbc]
fsub dword [esp + 0xc8]
fld dword [esp + 0xc0]
fsub dword [esp + 0xcc]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fxch st(1)
fxch st(3)
fcompp
fxch st(1)
fstp st(0)
fstp st(0)
fnstsw ax
test ah, 1
jne 0x4979c6
mov dword [ebp + 0xc], 0
mov dword [esp + 0x1c], 3
mov ecx, dword [esi]
call fcn.0049c090
mov ecx, dword [esi]
push 0
push 0
call fcn.0049c6c0
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa8
ret 0x38