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

Disassembly:
sub esp, 0xa8
push ebx
push esi
push edi
push ebp
mov ebp, ecx
push 0xffffffffffffffff
call fcn.0049fe30
test eax, eax
je 0x499979
mov ecx, dword [esp + 0xcc]
mov dword [ecx], 1
jmp 0x49a0ba
mov eax, dword [esp + 0xc8]
mov ecx, dword [ebp + 0x100]
push eax
call fcn.00439110
mov dword [esp + 0x14], eax
test eax, eax
je 0x49a0b8
mov ecx, eax
call fcn.004b0f30
test eax, eax
je 0x49a0b8
mov ecx, dword [esp + 0x14]
call fcn.004b1060
mov byte [esp + 0x13], al
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 8]
mov ax, word [ecx + 0x10]
cmp ax, 0x23
je 0x4999db
cmp ax, 0x24
je 0x4999db
cmp ax, 0xb
je 0x4999db
mov dword [esp + 0x24], 0
jmp 0x4999e3
mov dword [esp + 0x24], 1
mov eax, dword [esp + 0x14]
mov ecx, ebp
push eax
call fcn.004984b0
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x44], 0
mov ecx, dword [eax + 8]
cmp word [ecx + 0x14], 0x12
jne 0x499a11
mov dword [esp + 0x44], 1
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x68]
mov edx, dword [esp + 0xc8]
push eax
mov eax, dword [esp + 0xc0]
push ecx
lea ecx, [esp + 0x78]
push edx
push eax
push ecx
mov ecx, ebp
call fcn.0049d0a0
lea edi, [esp + 0x94]
mov esi, eax
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x40], 0
mov dword [esp + 0x64], 0xffffffff
mov dword [esp + 0x3c], 0
mov ecx, dword [ebp + 0x110]
test ecx, ecx
jle 0x49a0b2
mov dword [esp + 0x18], 0
mov eax, dword [ebp + 0x114]
xor ecx, ecx
add eax, dword [esp + 0x18]
mov edx, dword [esp + 0xbc]
mov cl, byte [eax + 0xb]
cmp ecx, edx
jne 0x49a090
mov eax, dword [eax]
mov ecx, dword [ebp + 0x100]
push eax
call fcn.00439110
mov esi, eax
test esi, esi
je 0x49a090
mov al, byte [esi + 0x48]
cmp al, 2
ja 0x49a090
fld dword [esi + 0x3c]
call fcn.005351bc
fld dword [esi + 0x38]
push eax
call fcn.005351bc
push eax
mov ecx, ebp
mov eax, dword [esp + 0xd0]
push eax
call fcn.0049fbe0
fstp dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov ebx, dword [esi]
push eax
mov ecx, esi
call dword [ebx + 0xfc]
fstp dword [esp + 0x70]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
call dword [eax + 0xf8]
fdivr dword [esp + 0x70]
cmp dword [esp + 0x1c], 0
jle 0x499b1a
fstp dword [esp + 0x20]
mov eax, dword [esp + 0x14]
fld dword [eax + 0x30]
fdiv dword [esp + 0x1c]
fstp dword [esp + 0x34]
jmp 0x499b26
fstp dword [esp + 0x20]
mov dword [esp + 0x34], 0xbf800000
mov eax, dword [esp + 0x20]
test eax, eax
jle 0x499b4f
mov eax, dword [ebp + 0x114]
mov ecx, dword [esp + 0x18]
movsx edx, word [eax + ecx + 0xc]
mov dword [esp + 0x70], edx
fild dword [esp + 0x70]
fdiv dword [esp + 0x20]
fstp dword [esp + 0x38]
jmp 0x499b57
mov dword [esp + 0x38], 0xbf800000
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x499b89
mov eax, dword [esp + 0xc0]
test eax, eax
je 0x499b89
mov eax, dword [esi + 8]
mov ax, word [eax + 0x14]
cmp ax, 3
je 0x499b7d
cmp ax, 0x1b
jne 0x499b89
mov eax, dword [esp + 0x68]
test eax, eax
jg 0x49a090
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x499bce
mov eax, dword [esp + 0xc4]
test eax, eax
je 0x499bce
mov eax, dword [esi + 8]
cmp word [eax + 0x10], 0x2d
je 0x499bc2
mov ax, word [eax + 0x14]
cmp ax, 2
je 0x499bc2
cmp ax, 0x15
je 0x499bc2
cmp ax, 0x16
je 0x499bc2
cmp ax, 0x14
jne 0x499bce
mov eax, dword [esp + 0x6c]
test eax, eax
jg 0x49a090
mov eax, dword [esp + 0x44]
test eax, eax
je 0x499bff
mov ecx, dword [esp + 0x14]
call fcn.004b0f30
mov edx, dword [ebp + 0x114]
mov ecx, dword [esp + 0x18]
mov ebx, dword [edx + ecx]
mov edx, dword [eax]
push ebx
mov ecx, eax
call dword [edx + 0xc4]
test eax, eax
je 0x49a090
fld dword [esi + 0x38]
mov edi, dword [ebp + 0x114]
xor ebx, ebx
add edi, dword [esp + 0x18]
call fcn.005351bc
mov dword [esp + 0x70], eax
mov bl, byte [edi + 8]
sub ebx, eax
jns 0x499c20
neg ebx
fld dword [esi + 0x3c]
call fcn.005351bc
xor ecx, ecx
mov cl, byte [edi + 9]
sub ecx, eax
jns 0x499c33
neg ecx
cmp ebx, 5
jg 0x499c3d
cmp ecx, 5
jle 0x499c5f
push eax
mov ecx, dword [ebp + 0x100]
mov eax, dword [esp + 0x74]
push eax
mov edx, dword [ecx + 0xf0]
mov ecx, dword [edx + 0x38]
call fcn.00411a00
cmp al, 0xf
jne 0x49a090
mov edi, dword [ebp + 0x114]
xor ebx, ebx
add edi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
fld dword [eax + 0x38]
mov bl, byte [edi + 8]
call fcn.005351bc
sub ebx, eax
mov dword [esp + 0x70], ebx
xor ebx, ebx
mov bl, byte [edi + 9]
mov eax, dword [esp + 0x14]
fld dword [eax + 0x3c]
call fcn.005351bc
sub ebx, eax
mov eax, dword [esp + 0x70]
imul eax, eax
imul ebx, ebx
add eax, ebx
mov dword [esp + 0x70], eax
fild dword [esp + 0x70]
fsqrt
call fcn.005351bc
mov ecx, dword [esp + 0x94]
test ecx, ecx
je 0x499cd5
shl eax, 2
lea ecx, [eax + eax*4]
lea eax, [ecx + ecx*4]
neg eax
cdq
idiv dword [esp + 0x94]
add eax, 0x64
mov dword [esp + 0x48], eax
jmp 0x499cdd
mov dword [esp + 0x48], 0x64
cmp word [esp + 0xa0], 0
je 0x499d06
movsx eax, word [edi + 0xc]
shl eax, 2
movsx ebx, word [esp + 0xa0]
lea ecx, [eax + eax*4]
lea eax, [ecx + ecx*4]
cdq
idiv ebx
mov dword [esp + 0x20], eax
jmp 0x499d0e
mov dword [esp + 0x20], 0x64
mov al, byte [esp + 0xa8]
test al, al
je 0x499d39
xor eax, eax
mov al, byte [edi + 0x14]
shl eax, 2
lea ecx, [eax + eax*4]
lea eax, [ecx + ecx*4]
xor ecx, ecx
cdq
mov cl, byte [esp + 0xa8]
idiv ecx
mov dword [esp + 0x1c], eax
jmp 0x499d41
mov dword [esp + 0x1c], 0x64
mov eax, dword [esp + 0xac]
test eax, 0x7fffffff
je 0x499d6a
fld dword [edi + 0x18]
fdiv dword [esp + 0xac]
fmul dword [0x550b54]
call fcn.005351bc
mov dword [esp + 0x60], eax
jmp 0x499d72
mov dword [esp + 0x60], 0x64
mov eax, dword [edi + 0x18]
test eax, eax
jle 0x499de4
mov eax, dword [esp + 0xb4]
test eax, 0x7fffffff
je 0x499da2
fld dword [edi + 0x20]
fdiv dword [esp + 0xb4]
fmul dword [0x550b54]
call fcn.005351bc
mov dword [esp + 0x2c], eax
jmp 0x499daa
mov dword [esp + 0x2c], 0x64
mov eax, dword [esp + 0xb0]
test eax, 0x7fffffff
je 0x499dda
fld dword [edi + 0x1c]
fdiv dword [esp + 0xb0]
mov ebx, 0x64
fmul dword [0x550b54]
call fcn.005351bc
sub ebx, eax
mov dword [esp + 0x30], ebx
jmp 0x499df4
mov dword [esp + 0x30], 0x64
jmp 0x499df4
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
call fcn.00535190
mov ecx, 0x64
push 0x6a
cdq
idiv ecx
mov eax, dword [ebp + 0x114]
mov ecx, dword [ebp + 0x100]
add ecx, 0x1146c
mov dword [esp + 0x74], edx
mov dword [esp + 0x60], 0
mov edx, dword [esp + 0x1c]
movsx edi, word [eax + edx + 4]
call fcn.0047e760
cmp edi, eax
jne 0x499e3b
mov dword [esp + 0x5c], 1
mov eax, dword [ebp + 0x114]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x58], 0
movsx edi, word [eax + ecx + 4]
push 0x6b
mov ecx, dword [ebp + 0x100]
add ecx, 0x1146c
call fcn.0047e760
cmp edi, eax
jne 0x499e71
mov dword [esp + 0x58], 1
mov eax, dword [ebp + 0x114]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x54], 0
movsx edi, word [eax + ecx + 4]
push 0x6c
mov ecx, dword [ebp + 0x100]
add ecx, 0x1146c
call fcn.0047e760
cmp edi, eax
jne 0x499ea7
mov dword [esp + 0x54], 1
fld dword [esi + 0x3c]
mov dword [esp + 0x50], 0
call fcn.005351bc
fld dword [esi + 0x38]
push eax
call fcn.005351bc
mov ecx, dword [esp + 0x18]
push eax
call fcn.004b0fd0
cmp al, byte [esp + 0x13]
jne 0x499ed8
mov dword [esp + 0x50], 1
mov edx, dword [esi + 8]
mov cx, word [edx + 0x14]
cmp cx, 3
je 0x499ef8
cmp cx, 0x1b
je 0x499ef8
cmp dword [esp + 0x24], 1
sbb eax, eax
and eax, 2
dec eax
jmp 0x499f03
cmp dword [esp + 0x24], 1
sbb eax, eax
and eax, 0xfffffffe
inc eax
cmp word [edx + 0x10], 0x2d
mov dword [esp + 0x4c], eax
je 0x499f33
cmp cx, 2
je 0x499f33
cmp cx, 0x15
je 0x499f33
cmp cx, 0x16
je 0x499f33
cmp cx, 0x14
je 0x499f33
cmp dword [esp + 0x28], 1
sbb edi, edi
and edi, 2
dec edi
jmp 0x499f3e
cmp dword [esp + 0x28], 1
sbb edi, edi
and edi, 0xfffffffe
inc edi
mov esi, dword [ebp + 0x100]
push 0x59
add esi, 0x1146c
mov ecx, esi
call fcn.0047e760
mov ebx, eax
mov ecx, dword [esp + 0x18]
mov eax, dword [ebp + 0x114]
push 0x50
imul ebx, dword [eax + ecx + 0x10]
mov ecx, esi
call fcn.0047e760
push 0x5a
mov ecx, esi
imul eax, dword [esp + 0x20]
add ebx, eax
call fcn.0047e760
push 0x4e
mov ecx, esi
imul eax, dword [esp + 0x30]
add ebx, eax
call fcn.0047e760
push 0x4d
mov ecx, esi
imul eax, dword [esp + 0x24]
add ebx, eax
call fcn.0047e760
push 0x7b
mov ecx, esi
imul eax, dword [esp + 0x4c]
add ebx, eax
call fcn.0047e760
push 0x7a
mov ecx, esi
imul eax, dword [esp + 0x50]
add ebx, eax
call fcn.0047e760
push 0x6f
mov ecx, esi
imul eax, dword [esp + 0x54]
add ebx, eax
call fcn.0047e760
push 0x6e
mov ecx, esi
imul eax, dword [esp + 0x58]
add ebx, eax
call fcn.0047e760
push 0x6d
mov ecx, esi
imul eax, dword [esp + 0x5c]
add ebx, eax
call fcn.0047e760
push 0x90
mov ecx, esi
imul eax, dword [esp + 0x60]
add ebx, eax
call fcn.0047e760
imul eax, edi
add ebx, eax
push 0x4f
mov ecx, esi
call fcn.0047e760
push 0x53
mov ecx, esi
imul eax, dword [esp + 0x64]
add ebx, eax
call fcn.0047e760
push 0x52
mov ecx, esi
imul eax, dword [esp + 0x74]
add ebx, eax
call fcn.0047e760
fld dword [esp + 0x38]
fcomp dword [esp + 0x34]
imul eax, dword [esp + 0x30]
lea edx, [ebx + eax]
fnstsw ax
test ah, 0x41
jne 0x49a050
mov eax, dword [esp + 0x34]
cmp eax, 0xbf800000
jne 0x49a05b
mov eax, dword [esp + 0x38]
cmp eax, 0xbf800000
jne 0x49a060
mov edx, 1
mov eax, dword [esp + 0x40]
test eax, eax
je 0x49a070
mov eax, dword [esp + 0x64]
cmp eax, edx
jge 0x49a090
mov eax, dword [ebp + 0x114]
mov dword [esp + 0x64], edx
add eax, dword [esp + 0x18]
mov edx, dword [esp + 0xcc]
mov dword [esp + 0x40], eax
nop
mov dword [edx], 1
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
add eax, 0x24
inc ecx
mov edx, dword [ebp + 0x110]
mov dword [esp + 0x18], eax
mov dword [esp + 0x3c], ecx
cmp edx, ecx
jg 0x499a75
mov eax, dword [esp + 0x40]
jmp 0x49a0ba
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xa8
ret 0x14