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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x124c
call fcn.005cd210
mov al, byte [0x624a50]
test al, al
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [0x6e2198]
push esi
push edi
mov dword [esp + 0xe8], ebx
je 0x504de3
mov edx, dword [ebx + 0x40]
mov edi, dword [0x6b4c9c]
lea eax, [ecx + ecx*2]
lea eax, [edx + eax*4]
mov edx, dword [0x6e219c]
mov edx, dword [edx + 0xa8]
mov dword [esp + 0xfc], eax
movsx eax, word [eax + 0xa]
lea eax, [eax + eax*4]
movsx eax, word [edx + eax*4 + 0x12]
mov edx, dword [0x6e21a0]
imul eax, eax, 0x374
mov edx, dword [edx + 0x198]
lea eax, [eax + edx + 0x2d4]
mov dword [esp + 0x88], eax
mov byte [esp + 0x13], 0
mov dword [esp + 0xe4], 0
mov dword [esp + 0x258], ecx
mov dword [esp + 0x84], 1
mov eax, dword [esp + 0xe4]
movsx ecx, ax
mov esi, dword [esp + ecx*4 + 0x258]
inc eax
mov dword [esp + 0xe4], eax
mov eax, dword [ebx + 0x40]
mov dword [esp + 0x11c], eax
lea edx, [esi + esi*2]
mov ecx, dword [eax + edx*4 + 4]
lea eax, [eax + edx*4]
mov edx, dword [eax]
mov eax, edx
and eax, 0x7fffffff
shl eax, 4
add eax, dword [ebx + 0x10]
test edx, edx
mov dword [esp + 0xf0], esi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x5c], 0
jns 0x503c58
fld dword [eax]
fchs
fstp dword [esp + 0x6c]
fld dword [eax + 4]
fchs
fstp dword [esp + 0x70]
fld dword [eax + 8]
fchs
fstp dword [esp + 0x74]
fld dword [eax + 0xc]
fchs
fstp dword [esp + 0x78]
jmp 0x503c73
mov edx, dword [eax]
mov dword [esp + 0x6c], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x70], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], eax
fld dword [esp + 0x6c]
fabs
fld dword [esp + 0x70]
fabs
fld dword [esp + 0x74]
fabs
fcom st(1)
fnstsw ax
test ah, 1
jne 0x503ca2
fcomp st(2)
fnstsw ax
test ah, 1
jne 0x503ca4
fstp st(0)
mov eax, 2
fstp st(0)
jmp 0x503cb8
fstp st(0)
fcomp st(1)
fnstsw ax
fstp st(0)
test ah, 1
jne 0x503cb6
mov eax, 1
jmp 0x503cb8
xor eax, eax
movsx eax, ax
mov dword [esp + 0x44], eax
fld dword [esp + eax*4 + 0x6c]
fcomp dword [0x612220]
fnstsw ax
test ah, 0x41
jne 0x503cd4
mov al, 1
jmp 0x503cd6
xor al, al
mov edx, dword [ebx + 0x4c]
mov ebx, dword [ebx + 0x58]
movzx eax, al
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x44]
lea eax, [eax + edx*2]
shl eax, 2
xor edx, edx
mov dx, word [eax + 0x5fa8bc]
mov dword [esp + 0xf4], eax
movsx eax, word [eax + 0x5fa8be]
mov dword [esp + 0x4c], eax
movsx eax, ax
mov dword [esp + 0x98], edx
movsx edx, dx
shl edx, 2
shl eax, 2
mov dword [esp + 0x80], ebx
mov dword [esp + 0x48], edx
mov dword [esp + 0x1c], eax
jmp 0x503d40
mov ebx, dword [esp + 0x80]
mov esi, dword [esp + 0xf0]
lea ebx, [ebx]
lea eax, [ecx + ecx*2]
mov ecx, dword [esp + 0x7c]
lea edx, [ecx + eax*8]
cmp dword [edx + 0x14], esi
sete al
xor ecx, ecx
test al, al
sete cl
mov byte [esp + 0x1b], al
mov dword [esp + 0xec], edx
mov eax, ecx
mov ecx, dword [edx + eax*4]
mov eax, dword [edx + eax*4 + 0x10]
shl ecx, 4
add ecx, ebx
cmp word [esp + 0x5c], 0
mov dword [esp + 0x118], eax
jne 0x504035
movzx eax, byte [esp + 0x1b]
mov edx, dword [edx + eax*4]
mov eax, dword [ebp + 0x10]
shl edx, 4
add edx, ebx
cmp esi, eax
mov dword [esp + 0x14], edx
jne 0x503e26
mov eax, dword [ebp + 0xc]
mov edx, dword [esp + 0x48]
fld dword [edx + eax + 0x28]
mov edx, dword [esp + 0x1c]
fld dword [edx + eax + 0x28]
movsx edx, word [esp + 0x98]
movsx esi, word [esp + 0x4c]
fld st(1)
mov ebx, dword [esp + 0x44]
shl edx, 2
shl esi, 2
fstp dword [esp + edx + 0x8c]
fst dword [esp + esi + 0x8c]
fld dword [esp + ebx*4 + 0x6c]
fabs
fcomp qword [0x612338]
fnstsw ax
test ah, 5
jp 0x503e03
mov edx, dword [esp + 0x14]
fstp st(0)
fstp st(0)
fld dword [0x612220]
fstp dword [esp + ebx*4 + 0x8c]
jmp 0x503e45
fxch st(1)
fmul dword [esp + edx + 0x6c]
mov edx, dword [esp + 0x14]
fsubr dword [esp + 0x78]
fxch st(1)
fmul dword [esp + esi + 0x6c]
fsubp st(1)
fdiv dword [esp + ebx*4 + 0x6c]
fstp dword [esp + ebx*4 + 0x8c]
jmp 0x503e45
mov eax, ecx
mov esi, dword [eax]
mov dword [esp + 0x8c], esi
mov esi, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], eax
fld dword [edx]
fsub dword [ecx]
fstp dword [esp + 0x2c]
fld dword [edx + 4]
fsub dword [ecx + 4]
fstp dword [esp + 0x30]
fld dword [edx + 8]
fsub dword [ecx + 8]
fstp dword [esp + 0x34]
fld dword [esp + 0x2c]
fmul dword [esp + 0x2c]
fld dword [esp + 0x34]
fmul dword [esp + 0x34]
faddp st(1)
fld dword [esp + 0x30]
fmul dword [esp + 0x30]
faddp st(1)
fsqrt
fld st(0)
fabs
fcomp qword [0x612338]
fnstsw ax
test ah, 5
jnp 0x503eb4
fdivr dword [0x612224]
fld dword [esp + 0x2c]
fmul st(1)
fstp dword [esp + 0x2c]
fld dword [esp + 0x30]
fmul st(1)
fstp dword [esp + 0x30]
fld dword [esp + 0x34]
fmul st(1)
fstp dword [esp + 0x34]
fstp st(0)
mov edx, dword [esp + 0x2c]
fld dword [esp + 0x30]
mov eax, dword [esp + 0x30]
fmul dword [esp + 0x74]
mov dword [esp + 0x9c], edx
fld dword [esp + 0x34]
mov edx, dword [esp + 0x34]
fmul dword [esp + 0x70]
mov dword [esp + 0xa4], edx
mov dword [esp + 0xa0], eax
fsubp st(1)
fstp dword [esp + 0x108]
mov eax, dword [esp + 0x108]
fld dword [esp + 0x34]
mov dword [esp + 0xc4], eax
fmul dword [esp + 0x6c]
fld dword [esp + 0x74]
fmul dword [esp + 0x2c]
fsubp st(1)
fstp dword [esp + 0x10c]
mov edx, dword [esp + 0x10c]
fld dword [esp + 0x70]
mov dword [esp + 0xc8], edx
fmul dword [esp + 0x2c]
fld dword [esp + 0x30]
fmul dword [esp + 0x6c]
fsubp st(1)
fstp dword [esp + 0x110]
mov eax, dword [esp + 0x110]
fld dword [esp + 0xa4]
mov dword [esp + 0xcc], eax
fmul dword [esp + 0x94]
fld dword [esp + 0xa0]
fmul dword [esp + 0x90]
faddp st(1)
fld dword [esp + 0x9c]
fmul dword [esp + 0x8c]
faddp st(1)
fstp dword [esp + 0xa8]
fld dword [esp + 0xcc]
fmul dword [esp + 0x94]
fld dword [esp + 0xc8]
fmul dword [esp + 0x90]
faddp st(1)
fld dword [esp + 0xc4]
fmul dword [esp + 0x8c]
faddp st(1)
fstp dword [esp + 0xd0]
fld dword [esp + 0xa4]
fmul dword [ecx + 8]
fld dword [esp + 0x9c]
fmul dword [ecx]
faddp st(1)
fld dword [esp + 0xa0]
fmul dword [ecx + 4]
faddp st(1)
fsub dword [esp + 0xa8]
fstp dword [esp + 0xd8]
fld dword [esp + 0xcc]
mov edx, dword [esp + 0xd8]
fmul dword [ecx + 8]
mov dword [esp + 0xd4], edx
fld dword [esp + 0xc4]
fmul dword [ecx]
faddp st(1)
fld dword [esp + 0xc8]
fmul dword [ecx + 4]
faddp st(1)
fsub dword [esp + 0xd0]
fstp dword [esp + 0xe0]
mov eax, dword [esp + 0xe0]
mov dword [esp + 0xdc], eax
jmp 0x5040f1
fld dword [esp + 0xa4]
fmul dword [ecx + 8]
fld dword [esp + 0x9c]
fmul dword [ecx]
faddp st(1)
fld dword [esp + 0xa0]
fmul dword [ecx + 4]
faddp st(1)
fsub dword [esp + 0xa8]
fld dword [esp + 0xcc]
fmul dword [ecx + 8]
fld dword [esp + 0xc4]
fmul dword [ecx]
faddp st(1)
fld dword [esp + 0xc8]
fmul dword [ecx + 4]
faddp st(1)
fsub dword [esp + 0xd0]
fstp dword [esp + 0x14]
fcom dword [esp + 0xd4]
fnstsw ax
test ah, 0x41
je 0x50409e
fst dword [esp + 0xd4]
fld dword [esp + 0x14]
fcomp dword [esp + 0xdc]
fnstsw ax
test ah, 0x41
je 0x5040bb
mov edx, dword [esp + 0x14]
mov dword [esp + 0xdc], edx
fcom dword [esp + 0xd8]
fnstsw ax
test ah, 0x41
jne 0x5040d2
fstp dword [esp + 0xd8]
jmp 0x5040d4
fstp st(0)
fld dword [esp + 0x14]
fcomp dword [esp + 0xe0]
fnstsw ax
test ah, 0x41
jne 0x5040f1
mov eax, dword [esp + 0x14]
mov dword [esp + 0xe0], eax
movsx eax, word [esp + 0x5c]
lea edx, [eax + eax*2]
lea edx, [esp + edx*4 + 0x1f8]
mov esi, ecx
mov ebx, dword [esi]
mov dword [edx], ebx
mov ebx, dword [esi + 4]
mov esi, dword [esi + 8]
mov dword [edx + 4], ebx
mov dword [edx + 8], esi
mov edx, dword [esp + 0x48]
mov edx, dword [edx + ecx]
lea eax, [esp + eax*8 + 0x1b8]
mov dword [eax], edx
mov edx, dword [esp + 0x1c]
mov edx, dword [edx + ecx]
mov dword [eax + 4], edx
mov al, byte [esp + 0x13]
test al, al
je 0x5041d8
fld dword [ecx]
fcomp dword [esp + 0xac]
fnstsw ax
test ah, 0x41
je 0x504151
mov eax, dword [ecx]
mov dword [esp + 0xac], eax
fld dword [ecx + 4]
fcomp dword [esp + 0xb4]
fnstsw ax
test ah, 0x41
je 0x50416c
mov edx, dword [ecx + 4]
mov dword [esp + 0xb4], edx
fld dword [ecx + 8]
fcomp dword [esp + 0xbc]
fnstsw ax
test ah, 0x41
je 0x504187
mov eax, dword [ecx + 8]
mov dword [esp + 0xbc], eax
fld dword [ecx]
fcomp dword [esp + 0xb0]
fnstsw ax
test ah, 0x41
jne 0x5041a0
mov edx, dword [ecx]
mov dword [esp + 0xb0], edx
fld dword [ecx + 4]
fcomp dword [esp + 0xb8]
fnstsw ax
test ah, 0x41
jne 0x5041bb
mov eax, dword [ecx + 4]
mov dword [esp + 0xb8], eax
fld dword [ecx + 8]
fcomp dword [esp + 0xc0]
fnstsw ax
test ah, 0x41
jne 0x504215
mov ecx, dword [ecx + 8]
mov dword [esp + 0xc0], ecx
jmp 0x504215
mov edx, dword [ecx]
mov eax, edx
mov dword [esp + 0xb0], edx
mov edx, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [esp + 0xac], eax
mov eax, edx
mov dword [esp + 0xb8], edx
mov edx, ecx
mov dword [esp + 0xb4], eax
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xbc], edx
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x118]
mov edx, dword [esp + 0x84]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x50428b
lea ebx, [ebx]
cmp cx, dx
jge 0x50424c
movsx esi, cx
cmp dword [esp + esi*4 + 0x258], eax
jne 0x504244
or eax, 0xffffffff
inc ecx
cmp eax, 0xffffffff
jne 0x504230
jmp 0x50428b
cmp eax, 0xffffffff
je 0x50428b
mov esi, dword [esp + 0x11c]
lea ecx, [eax + eax*2]
lea ecx, [esi + ecx*4]
movzx esi, byte [ecx + 9]
cmp si, word [ebp + 8]
jne 0x50428b
mov cx, word [ecx + 0xa]
mov esi, dword [esp + 0xfc]
cmp cx, word [esi + 0xa]
jne 0x50428b
movsx ecx, dx
inc edx
mov dword [esp + ecx*4 + 0x258], eax
mov dword [esp + 0x84], edx
movzx eax, byte [esp + 0x1b]
mov ecx, dword [esp + 0xec]
mov ecx, dword [ecx + eax*4 + 8]
mov esi, dword [esp + 0x5c]
mov eax, dword [esp + 0xc]
inc esi
cmp ecx, eax
mov dword [esp + 0x5c], esi
jne 0x503d2c
mov eax, dword [esp + 0x88]
mov ecx, dword [eax + 0x48]
test ecx, ecx
mov ebx, dword [esp + 0xe8]
mov dword [esp + 0x80], 0
jle 0x504cb8
xor esi, esi
jmp 0x5042e0
mov ecx, dword [esp + 0x88]
mov edx, dword [ecx + 0x4c]
shl esi, 7
mov eax, dword [esi + edx + 0xc]
add esi, edx
cmp eax, 0xffffffff
je 0x504c8f
fld dword [0x612220]
fld dword [esi + 0x14]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x504708
fld dword [esp + 0xd4]
fdiv dword [esi + 0x14]
fcom dword [0x612778]
fnstsw ax
test ah, 5
jp 0x504333
fstp st(0)
fld dword [0x612778]
jmp 0x504348
fcom dword [0x612248]
fnstsw ax
test ah, 0x41
jne 0x504348
fstp st(0)
fld dword [0x612248]
sub esp, 8
fstp qword [esp]
call fcn.005cb770
fstp dword [esp + 0x14]
add esp, 8
fld dword [esp + 0xc]
fistp dword [esp + 0xf8]
fld dword [esp + 0xdc]
fdiv dword [esi + 0x14]
mov dx, word [esp + 0xf8]
mov word [esp + 0x52], dx
fcom dword [0x612778]
fnstsw ax
test ah, 5
jp 0x504393
fstp st(0)
fld dword [0x612778]
jmp 0x5043a8
fcom dword [0x612248]
fnstsw ax
test ah, 0x41
jne 0x5043a8
fstp st(0)
fld dword [0x612248]
sub esp, 8
fstp qword [esp]
call fcn.005cb770
fstp dword [esp + 0x14]
add esp, 8
fld dword [esp + 0xc]
fistp dword [esp + 0x104]
fld dword [esp + 0xd8]
fdiv dword [esi + 0x14]
mov edi, dword [esp + 0x104]
mov word [esp + 0x50], di
fcom dword [0x612778]
fnstsw ax
test ah, 5
jp 0x5043f2
fstp st(0)
fld dword [0x612778]
jmp 0x504407
fcom dword [0x612248]
fnstsw ax
test ah, 0x41
jne 0x504407
fstp st(0)
fld dword [0x612248]
sub esp, 8
fstp qword [esp]
call fcn.005c8f50
fstp dword [esp + 0x14]
add esp, 8
fld dword [esp + 0xc]
fistp dword [esp + 0x100]
fld dword [esp + 0xe0]
fdiv dword [esi + 0x14]
mov ax, word [esp + 0x100]
mov word [esp + 0x56], ax
fcom dword [0x612778]
fnstsw ax
test ah, 5
jp 0x504452
fstp st(0)
fld dword [0x612778]
jmp 0x504467
fcom dword [0x612248]
fnstsw ax
test ah, 0x41
jne 0x504467
fstp st(0)
fld dword [0x612248]
sub esp, 8
fstp qword [esp]
call fcn.005c8f50
fstp dword [esp + 0x14]
add esp, 8
fld dword [esp + 0xc]
fistp dword [esp + 0x114]
mov eax, dword [esp + 0x114]
cmp di, ax
mov edi, dword [0x6b4c9c]
mov word [esp + 0x54], ax
jg 0x504c8f
movsx edx, word [esp + 0x50]
mov eax, dword [esp + 0x54]
mov dword [esp + 0x44], edx
sub eax, dword [esp + 0x50]
inc eax
movzx ecx, ax
mov dword [esp + 0x7c], ecx
jmp 0x5044c0
mov dx, word [esp + 0x56]
cmp word [esp + 0x52], dx
jg 0x504c70
mov edx, dword [esp + 0x52]
fild dword [esp + 0x44]
mov ecx, dword [esp + 0x56]
movsx eax, word [esp + 0x52]
mov ebx, dword [esp + 0xf4]
fstp dword [esp + 0xec]
sub ecx, edx
inc ecx
movzx edx, cx
mov dword [esp + 0x48], eax
mov dword [esp + 0x98], edx
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x38], eax
mov edx, dword [esp + 0x94]
mov eax, edi
imul eax, eax, 0x19660d
add eax, 0x3c6ef35f
mov dword [esp + 0x3c], ecx
mov dword [0x6b4c9c], eax
mov ecx, eax
imul eax, eax, 0x19660d
shr ecx, 0x10
mov dword [esp + 0xc], ecx
mov dword [esp + 0x40], edx
fild dword [esp + 0xc]
add eax, 0x3c6ef35f
mov edx, eax
shr edx, 0x10
fmul dword [0x6122e4]
mov dword [esp + 0xc], edx
mov edi, eax
fmul dword [0x612404]
mov dword [0x6b4c9c], edi
movsx eax, word [ebx + 0x5fa8bc]
fsub dword [0x6124c8]
movsx ecx, word [ebx + 0x5fa8be]
fild dword [esp + 0xc]
push 0
fmul dword [0x6122e4]
lea edx, [esp + 0x188]
push edx
fmul dword [0x612404]
fsub dword [0x6124c8]
fild dword [esp + 0x50]
fadd st(2)
fmul dword [esi + 0x14]
fld dword [esp + 0xa4]
fmul st(1)
fadd dword [esp + 0x40]
fstp dword [esp + 0x40]
fld dword [esp + 0xa8]
fmul st(1)
fadd dword [esp + 0x44]
fstp dword [esp + 0x44]
fld dword [esp + 0xac]
fmul st(1)
fadd dword [esp + 0x48]
fstp dword [esp + 0x48]
fstp st(0)
fld dword [esp + 0xf4]
fadd st(1)
fmul dword [esi + 0x14]
fstp st(2)
fstp st(0)
fld dword [esp + 0xcc]
fmul st(1)
fadd dword [esp + 0x40]
fstp dword [esp + 0x40]
fld dword [esp + 0xd0]
fmul st(1)
fadd dword [esp + 0x44]
fstp dword [esp + 0x44]
fld dword [esp + 0xd4]
fmul st(1)
fadd dword [esp + 0x48]
fstp dword [esp + 0x48]
fstp st(0)
fld dword [esp + eax*4 + 0x40]
mov eax, dword [esp + 0x64]
fstp dword [esp + 0x18c]
push eax
fld dword [esp + ecx*4 + 0x44]
fstp dword [esp + 0x194]
lea ecx, [esp + 0x1c4]
call fcn.004ce260
add esp, 0xc
test al, al
je 0x504c52
mov ebx, dword [0x631d04]
fld dword [esp + 0x38]
mov ecx, ebx
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x28], ecx
mov ecx, dword [ebp + 0xc]
fsub dword [ecx + 0x28]
mov dword [esp + 0x20], edx
mov edx, dword [ecx]
and edx, 0xffff
fstp dword [esp + 0x60]
mov dword [esp + 0x24], eax
fld dword [esp + 0x3c]
mov eax, dword [0x816d04]
fsub dword [ecx + 0x2c]
shl edx, 5
mov edx, dword [edx + eax + 0x14]
add edx, 0x194
fstp dword [esp + 0x64]
mov dword [esp + 0x4c], edx
fld dword [esp + 0x40]
fsub dword [ecx + 0x30]
fst dword [esp + 0x68]
fmul dword [esp + 0x68]
fld dword [esp + 0x64]
fmul dword [esp + 0x64]
faddp st(1)
fld dword [esp + 0x60]
fmul dword [esp + 0x60]
faddp st(1)
fsqrt
fst dword [esp + 0x14]
fabs
fcomp qword [0x612338]
fnstsw ax
test ah, 5
jnp 0x504733
fld dword [0x612224]
fdiv dword [esp + 0x14]
fld dword [esp + 0x60]
fmul st(1)
fstp dword [esp + 0x60]
fld dword [esp + 0x64]
fmul st(1)
fstp dword [esp + 0x64]
fld dword [esp + 0x68]
fmul st(1)
fstp dword [esp + 0x68]
fstp st(0)
jmp 0x50473b
mov ecx, dword [esp + 0xf0]
cmp ecx, dword [ebp + 0x10]
jne 0x504c8f
xor eax, eax
mov word [esp + 0x54], ax
mov word [esp + 0x56], ax
mov word [esp + 0x50], ax
mov word [esp + 0x52], ax
jmp 0x50449f
mov dword [esp + 0x14], 0
fld dword [edx + 0x1c]
fcomp dword [0x612220]
fnstsw ax
test ah, 0x41
jne 0x5047e6
fld dword [esp + 0x14]
fdiv dword [edx + 0x1c]
fsubr dword [0x612224]
fcom dword [0x612220]
fnstsw ax
test ah, 5
jp 0x504773
fstp st(0)
fld dword [0x612220]
jmp 0x504788
fcom dword [0x612224]
fnstsw ax
test ah, 0x41
jne 0x504788
fstp st(0)
fld dword [0x612224]
fst dword [esp + 0x1c]
fld dword [0x612220]
fld dword [edx + 0x20]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x5047b7
mov ecx, dword [esp + 0x4c]
fstp st(0)
fld dword [esp + 0x1c]
fld dword [ecx + 0x20]
call fcn.005cd390
mov edx, dword [esp + 0x4c]
mov ecx, dword [ebp + 0xc]
fmul dword [edx + 0x18]
fld dword [esp + 0x60]
fmul st(1)
fadd dword [esp + 0x20]
fstp dword [esp + 0x20]
fld dword [esp + 0x64]
fmul st(1)
fadd dword [esp + 0x24]
fstp dword [esp + 0x24]
fld dword [esp + 0x68]
fmul st(1)
fadd dword [esp + 0x28]
fstp dword [esp + 0x28]
fstp st(0)
fld dword [edx + 4]
fcomp dword [0x612220]
fnstsw ax
test ah, 0x41
jne 0x504889
fld dword [esp + 0x14]
fdiv dword [edx + 4]
fsubr dword [0x612224]
fcom dword [0x612220]
fnstsw ax
test ah, 5
jp 0x50481e
fstp st(0)
fld dword [0x612220]
jmp 0x504833
fcom dword [0x612224]
fnstsw ax
test ah, 0x41
jne 0x504833
fstp st(0)
fld dword [0x612224]
fst dword [esp + 0x1c]
fld dword [0x612220]
fld dword [edx + 8]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x504862
mov edx, dword [esp + 0x4c]
fstp st(0)
fld dword [esp + 0x1c]
fld dword [edx + 8]
call fcn.005cd390
mov edx, dword [esp + 0x4c]
mov ecx, dword [ebp + 0xc]
fmul dword [edx]
fld st(0)
fmul dword [ecx + 0x34]
fadd dword [esp + 0x20]
fstp dword [esp + 0x20]
fld st(0)
fmul dword [ecx + 0x38]
fadd dword [esp + 0x24]
fstp dword [esp + 0x24]
fmul dword [ecx + 0x3c]
fadd dword [esp + 0x28]
fstp dword [esp + 0x28]
fld dword [esi + 0x1c]
fcomp dword [0x612220]
fnstsw ax
test ah, 0x41
jne 0x5048f0
fld dword [esi + 0x1c]
imul edi, edi, 0x19660d
fld dword [esi + 0x18]
fxch st(1)
fsub st(1)
add edi, 0x3c6ef35f
mov eax, edi
shr eax, 0x10
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
mov dword [0x6b4c9c], edi
fmul dword [0x6122e4]
fmulp st(1)
fadd st(1)
fxch st(1)
fstp st(0)
fld dword [esp + 0x20]
fmul st(1)
fstp dword [esp + 0x20]
fld dword [esp + 0x24]
fmul st(1)
fstp dword [esp + 0x24]
fld dword [esp + 0x28]
fmul st(1)
fstp dword [esp + 0x28]
fstp st(0)
mov edx, dword [esp + 0x38]
imul edi, edi, 0x19660d
mov ecx, dword [esi + 0xc]
or eax, 0xffffffff
mov dword [esp + 0x124], eax
mov word [esp + 0x128], ax
mov word [esp + 0x12a], ax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x130], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x134], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x150], edx
mov dword [esp + 0x144], edx
mov edx, dword [ebx]
mov dword [esp + 0x120], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x14c], eax
mov dword [esp + 0x140], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x154], edx
add edi, 0x3c6ef35f
mov dword [esp + 0x138], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x158], eax
mov edx, edi
shr edx, 0x10
mov dword [esp + 0xc], edx
mov dword [esp + 0x148], ecx
fild dword [esp + 0xc]
mov dword [esp + 0x13c], ecx
mov ecx, dword [ebx + 8]
mov eax, edi
fmul dword [0x6122e4]
mov dword [0x6b4c9c], eax
imul eax, eax, 0x19660d
add eax, 0x3c6ef35f
fmul dword [0x612380]
mov dword [esp + 0x15c], ecx
mov ecx, eax
fstp dword [esp + 0x160]
shr ecx, 0x10
fld dword [esi + 0x28]
mov dword [esp + 0xc], ecx
fld dword [esi + 0x24]
mov dword [0x6b4c9c], eax
imul eax, eax, 0x19660d
fxch st(1)
fsub st(1)
fild dword [esp + 0xc]
fmul dword [0x6122e4]
fmulp st(1)
add eax, 0x3c6ef35f
mov edx, eax
shr edx, 0x10
fadd st(1)
mov dword [esp + 0xc], edx
mov byte [esp + 0x12c], 0
mov byte [esp + 0x12d], 0
fstp dword [esp + 0x164]
mov byte [esp + 0x12e], 0
fstp st(0)
fld dword [esi + 0x38]
fld dword [esi + 0x34]
mov dword [0x6b4c9c], eax
fxch st(1)
fsub st(1)
fild dword [esp + 0xc]
fmul dword [0x6122e4]
fmulp st(1)
fadd st(1)
fstp dword [esp + 0x168]
fstp st(0)
imul eax, eax, 0x19660d
add eax, 0x3c6ef35f
mov edi, eax
shr eax, 0x10
mov dword [esp + 0xc], eax
push ecx
fild dword [esp + 0x10]
mov dword [0x6b4c9c], edi
mov edx, dword [esi + 0x10]
and edx, 3
fmul dword [0x6122e4]
lea eax, [esi + 0x58]
lea ecx, [esi + 0x48]
fstp dword [esp]
push edx
lea edx, [esp + 0x178]
push edx
call fcn.0043f6b0
imul edi, edi, 0x19660d
add edi, 0x3c6ef35f
mov eax, edi
shr eax, 0x10
mov dword [esp + 0x18], eax
mov dword [0x6b4c9c], edi
fild dword [esp + 0x18]
add esp, 0xc
fmul dword [0x6122e4]
fld dword [esi + 0x54]
fsub dword [esi + 0x44]
fmulp st(1)
fadd dword [esi + 0x44]
fcomp dword [0x612220]
fnstsw ax
test ah, 5
jp 0x504ad9
mov dword [esp + 0x16c], 0
jmp 0x504b5a
imul edi, edi, 0x19660d
add edi, 0x3c6ef35f
mov ecx, edi
shr ecx, 0x10
mov dword [esp + 0xc], ecx
mov dword [0x6b4c9c], edi
fild dword [esp + 0xc]
fmul dword [0x6122e4]
fld dword [esi + 0x54]
fsub dword [esi + 0x44]
fmulp st(1)
fadd dword [esi + 0x44]
fcomp dword [0x612224]
fnstsw ax
test ah, 0x41
jne 0x504b23
mov dword [esp + 0x16c], 0x3f800000
jmp 0x504b5a
imul edi, edi, 0x19660d
add edi, 0x3c6ef35f
mov edx, edi
shr edx, 0x10
mov dword [esp + 0xc], edx
mov dword [0x6b4c9c], edi
fild dword [esp + 0xc]
fmul dword [0x6122e4]
fld dword [esi + 0x54]
fsub dword [esi + 0x44]
fmulp st(1)
fadd dword [esi + 0x44]
fstp dword [esp + 0x16c]
fld dword [esp + 0x144]
fmul dword [esp + 0x144]
fld dword [esp + 0x140]
fmul dword [esp + 0x140]
faddp st(1)
fld dword [esp + 0x13c]
fmul dword [esp + 0x13c]
faddp st(1)
fsqrt
fld st(0)
fabs
fcomp qword [0x612338]
fnstsw ax
test ah, 5
jnp 0x504be8
fld dword [0x612224]
fdiv st(1)
fld dword [esp + 0x13c]
fmul st(1)
fstp dword [esp + 0x13c]
fld dword [esp + 0x140]
fmul st(1)
fstp dword [esp + 0x140]
fld dword [esp + 0x144]
fmul st(1)
fstp dword [esp + 0x144]
fstp st(0)
fld dword [0x612220]
fxch st(1)
fucompp
fnstsw ax
test ah, 0x44
jp 0x504c39
jmp 0x504bea
fstp st(0)
movsx ecx, word [0x652960]
imul edi, edi, 0x19660d
add edi, 0x3c6ef35f
mov eax, edi
shr eax, 0x10
imul eax, ecx
shr eax, 0x10
movsx eax, ax
lea edx, [eax + eax*2]
mov eax, dword [0x65295c]
lea eax, [eax + edx*4]
mov dword [0x6b4c9c], edi
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x13c], ecx
mov dword [esp + 0x140], edx
mov dword [esp + 0x144], eax
lea edi, [esp + 0x120]
call fcn.004562d0
mov edi, dword [0x6b4c9c]
mov ebx, dword [esp + 0xf4]
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x98]
inc ecx
dec eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x98], eax
jne 0x504500
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x7c]
inc ecx
dec eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x7c], eax
jne 0x5044c0
mov ebx, dword [esp + 0xe8]
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x88]
inc eax
movsx esi, ax
mov dword [esp + 0x80], eax
cmp esi, dword [ecx + 0x48]
jl 0x5042e0
mov edx, dword [esp + 0x84]
cmp word [esp + 0xe4], dx
jl 0x503be0
mov edx, dword [esp + 0x88]
mov eax, dword [edx + 0x2c]
cmp eax, 0xffffffff
je 0x504de3
mov cl, byte [esp + 0x13]
test cl, cl
je 0x504de3
fld dword [esp + 0xb0]
mov ecx, dword [0x631d08]
fadd dword [esp + 0xac]
mov edx, dword [ecx]
mov dword [esp + 0x198], edx
mov edx, dword [ecx + 4]
mov ecx, dword [ecx + 8]
fmul dword [0x61221c]
mov dword [esp + 0x19c], edx
mov edx, dword [0x631d04]
fstp dword [esp + 0x18c]
mov dword [esp + 0x1a0], ecx
fld dword [esp + 0xb8]
mov ecx, dword [edx]
fadd dword [esp + 0xb4]
mov dword [esp + 0x1a4], ecx
mov ecx, dword [edx + 4]
mov edx, dword [edx + 8]
fmul dword [0x61221c]
push 0
mov dword [esp + 0x1ac], ecx
mov ecx, dword [ebp + 0xc]
fstp dword [esp + 0x194]
fld dword [esp + 0xc4]
push 0
fadd dword [esp + 0xc4]
mov dword [esp + 0x1b4], edx
mov edx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0x18]
push 0
push 0
mov dword [esp + 0x1c0], edx
fmul dword [0x61221c]
mov dword [esp + 0x1c4], ecx
push 0xffffffffffffffff
lea edx, [esp + 0x1cc]
fstp dword [esp + 0x1a8]
push edx
mov ecx, 0xb
lea esi, [esp + 0x1a4]
lea edi, [esp + 0x1dc]
rep movsd dword es:[edi], dword [esi]
push eax
mov dword [esp + 0x1d8], 0x3f800000
mov word [esp + 0x1d4], 1
mov dword [esp + 0x1dc], 0x3f800000
call fcn.0054d360
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret