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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x120]
xor ecx, ecx
mov dword [esi], ecx
mov eax, dword [edi + 0xb4]
lea ebx, [esi + 0x10]
mov dword [ebx + 0x6c], eax
mov eax, dword [edi + 0x20]
mov dword [ebx + 0x7c], eax
cmp eax, ecx
je 0x4df182
mov dword [edi + 0x24], ecx
cmp dword [esi + 0x14f2c], ecx
je 0x4df18d
mov dword [edi + 0x24], ecx
mov edx, dword [edi + 0x110]
mov dword [esi + 0x14f44], edx
mov eax, dword [edi + 0x114]
mov dword [esi + 0x14f48], eax
mov edx, dword [edi + 0x118]
mov dword [esi + 0x14f4c], edx
cmp dword [edi + 0x128], ecx
je 0x4df1d1
call fcn.004e2200
add eax, eax
xor eax, dword [esi + 0x14efc]
and eax, 2
xor dword [esi + 0x14efc], eax
jmp 0x4df1d8
and dword [esi + 0x14efc], 0xfffffffd
cmp dword [edi + 0x124], 0
je 0x4df1f9
call fcn.004e21f0
mov ecx, dword [esi + 0x14efc]
xor ecx, eax
and ecx, 1
xor dword [esi + 0x14efc], ecx
jmp 0x4df200
and dword [esi + 0x14efc], 0xfffffffe
cmp dword [edi + 0x12c], 0
je 0x4df240
call fcn.004e2210
lea edx, [eax*4]
xor edx, dword [esi + 0x14efc]
and edx, 4
xor dword [esi + 0x14efc], edx
call fcn.004e2220
add eax, eax
add eax, eax
add eax, eax
xor eax, dword [esi + 0x14efc]
and eax, 8
xor dword [esi + 0x14efc], eax
jmp 0x4df247
and dword [esi + 0x14efc], 0xfffffff3
cmp dword [esi + 0x14f24], 0
jne 0x4df269
push 0xad4
push 1
call fcn.00451f19
add esp, 8
mov dword [esi + 0x14f24], eax
test eax, eax
je 0x4df2a4
cmp dword [esi + 0x14eac], 0
jne 0x4df287
push 0x20e88
push 1
call fcn.00451f19
add esp, 8
mov dword [esi + 0x14eac], eax
xor edx, edx
cmp dword [esi + 0x14eac], edx
jne 0x4df2b0
push esi
call fcn.004e11b0
add esp, 4
mov dword [edi + 0x120], 0
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 0x78]
mov dword [ebx + 0x90], ecx
mov eax, dword [edi + 0x68]
mov dword [ebx + 0x94], eax
mov ecx, dword [edi + 0x6c]
mov dword [ebx + 0x98], ecx
mov eax, dword [edi + 0x70]
mov dword [ebx + 0x9c], eax
mov ecx, dword [edi + 0x74]
mov dword [ebx + 0xa0], ecx
mov eax, dword [edi + 8]
mov dword [ebx + 0x34], eax
mov ecx, 3
cmp eax, 1
jne 0x4df2f0
mov dword [edi + 0x30], ecx
xor eax, eax
cmp dword [edi + 0x30], ecx
setne al
inc eax
mov dword [ebx + 0x38], eax
cmp dword [edi + 0x30], ecx
jne 0x4df304
mov dword [edi + 0x34], edx
mov ecx, dword [edi + 0x34]
mov dword [ebx + 0x40], ecx
mov eax, dword [edi + 0x9c]
cmp eax, edx
jne 0x4df32c
mov ecx, dword [edi + 0xa8]
cmp ecx, 0x80
je 0x4df32a
cmp dword [edi + 0x60], edx
jne 0x4df32a
mov dword [edi + 0x60], ecx
cmp eax, edx
jl 0x4df338
cmp eax, 1
jle 0x4df33b
cmp eax, 4
je 0x4df33b
mov dword [edi + 0x38], edx
mov eax, dword [edi + 0x38]
fldz
mov dword [ebx + 0x88], eax
mov ecx, dword [edi + 0x9c]
cmp ecx, edx
jne 0x4df3ac
cmp dword [edi + 0x60], edx
jne 0x4df3ac
fld dword [edi + 0x64]
fabs
fld st(1)
fabs
fcom st(1)
fnstsw ax
test ah, 5
jp 0x4df385
fstp st(0)
fld dword [edi + 0x64]
fsubrp st(2)
fxch st(1)
fabs
fxch st(1)
fmul qword [0x55a048]
fcompp
fnstsw ax
test ah, 1
je 0x4df3a1
jmp 0x4df3ae
fstp st(1)
fld dword [edi + 0x64]
fsubrp st(2)
fxch st(1)
fabs
fxch st(1)
fmul qword [0x55a048]
fcompp
fnstsw ax
test ah, 1
jne 0x4df3ae
fld dword [0x55a110]
fstp dword [edi + 0x64]
jmp 0x4df3ae
fstp st(0)
fldz
cmp ecx, edx
jne 0x4df43a
fcom dword [edi + 0x64]
fnstsw ax
test ah, 5
jp 0x4df43a
cmp dword [edi + 0x10], 0
fstp st(0)
jne 0x4df3e4
fild dword [edi + 0xc]
fmul qword [0x55a108]
call fcn.00451de0
push eax
call fcn.004e16e0
add esp, 4
mov dword [edi + 0x10], eax
mov eax, dword [edi + 0x10]
mov ecx, dword [ebx + 0x38]
imul ecx, eax
shl ecx, 4
mov dword [ebp + 8], ecx
fild dword [ebp + 8]
fld dword [edi + 0x64]
fmul qword [0x558278]
fdivp st(1)
call fcn.00451de0
mov dword [edi + 0x60], eax
mov eax, dword [edi + 0x10]
push ebx
push eax
call fcn.004e17b0
add esp, 8
cmp dword [ebx + 0x88], 0
mov dword [ebx + 4], eax
jne 0x4df438
mov edx, dword [edi + 0x10]
mov eax, dword [ebx]
mov ecx, dword [edi + 0x60]
push edx
push eax
push ecx
call fcn.004e15b0
add esp, 0xc
mov dword [edi + 0x60], eax
fldz
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x4df4b5
cmp ecx, 0x3e80
mov eax, dword [edi + 0xa8]
jge 0x4df46b
cmp eax, 8
jg 0x4df459
mov eax, 8
cmp eax, 0x40
mov dword [edi + 0xa8], eax
jl 0x4df4ad
mov eax, 0x40
jmp 0x4df4ad
cmp ecx, 0x7d00
jge 0x4df491
cmp eax, 8
jg 0x4df47d
mov eax, 8
cmp eax, 0xa0
mov dword [edi + 0xa8], eax
jl 0x4df4ad
mov eax, 0xa0
jmp 0x4df4ad
cmp eax, 0x20
jg 0x4df49b
mov eax, 0x20
cmp eax, 0x140
mov dword [edi + 0xa8], eax
jl 0x4df4ad
mov eax, 0x140
mov dword [edi + 0xa8], eax
test ecx, ecx
fld dword [0x55a104]
jne 0x4df7a9
mov eax, dword [edi + 0x9c]
cmp eax, 1
je 0x4df4d5
cmp eax, 4
jne 0x4df7a9
fild dword [edi + 0xa4]
mov dword [ebp - 0x118], 0xbb80
mov dword [ebp - 0x104], 0x5c94
mov dword [ebp - 0x100], 0xac44
fadd dword [edi + 0xa0]
mov dword [ebp - 0xec], 0x5514
mov dword [ebp - 0xe8], 0x7d00
mov dword [ebp - 0xd4], 0x3db8
fstp dword [ebp - 4]
mov dword [ebp - 0xd0], 0x5dc0
fxch st(1)
mov dword [ebp - 0xbc], 0x2e4a
fst dword [ebp - 0x114]
mov dword [ebp - 0xb8], 0x5622
fst dword [ebp - 0x10c]
mov dword [ebp - 0xa4], 0x2a8c
fxch st(1)
mov dword [ebp - 0xa0], 0x3e80
fst dword [ebp - 0x110]
mov dword [ebp - 0x8c], 0x1edf
fst dword [ebp - 0x108]
mov dword [ebp - 0x88], 0x2ee0
fxch st(1)
mov dword [ebp - 0x74], 0x1728
fst dword [ebp - 0xfc]
mov dword [ebp - 0x70], 0x2b11
fst dword [ebp - 0xf4]
mov dword [ebp - 0x5c], 0x1546
fxch st(1)
mov dword [ebp - 0x58], 0x1f40
fst dword [ebp - 0xf8]
fst dword [ebp - 0xf0]
fst dword [ebp - 0xe4]
fld dword [0x558258]
fst dword [ebp - 0xe0]
fld dword [0x55a100]
fst dword [ebp - 0xdc]
fxch st(2)
fst dword [ebp - 0xd8]
fxch st(1)
fstp dword [ebp - 0xcc]
fld dword [0x55a0fc]
fst dword [ebp - 0xc8]
fxch st(2)
fst dword [ebp - 0xc4]
fld dword [0x558274]
fst dword [ebp - 0xc0]
fxch st(3)
fstp dword [ebp - 0xb4]
fld dword [str.Bogus_message_code__d]
fst dword [ebp - 0xb0]
fxch st(1)
fstp dword [ebp - 0xac]
fxch st(1)
fst dword [ebp - 0xa8]
fxch st(1)
fstp dword [ebp - 0x9c]
fld dword [0x55a0f4]
fst dword [ebp - 0x98]
fld dword [0x55a0f0]
fst dword [ebp - 0x94]
fxch st(2)
fst dword [ebp - 0x90]
fxch st(1)
fstp dword [ebp - 0x84]
fld dword [0x55a0ec]
fst dword [ebp - 0x80]
fld dword [0x55a0e8]
fstp dword [ebp - 0x7c]
fxch st(3)
fstp dword [ebp - 0x78]
fxch st(2)
fstp dword [ebp - 0x6c]
fld dword [0x55a0e4]
fst dword [ebp - 0x68]
fld dword [0x55a0e0]
fstp dword [ebp - 0x64]
fxch st(2)
fst dword [ebp - 0x60]
fxch st(2)
fstp dword [ebp - 0x54]
fld dword [0x52fbfc]
mov edx, dword [edi + 0xc]
fstp dword [ebp - 0x50]
lea ecx, [ebp - 0xe4]
mov dword [ebp - 0x44], 0xf70
fstp dword [ebp - 0x4c]
mov dword [ebp - 0x40], 2
mov dword [ebp + 8], ecx
fst dword [ebp - 0x48]
fld dword [ebp - 4]
cmp edx, dword [ecx - 4]
jne 0x4df6f6
fld dword [ecx]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x4df6f6
mov eax, dword [ebp + 8]
fld st(0)
fdiv dword [eax]
fmul dword [eax + 8]
fld st(0)
call fcn.00451de0
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], eax
fisub dword [ebp - 4]
mov dword [edi + 0xa4], eax
fstp dword [edi + 0xa0]
mov edx, dword [edi + 0xc]
cmp edx, dword [ecx - 4]
jl 0x4df715
fld dword [ecx]
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x4df715
fld dword [ecx + 4]
fcomp st(1)
fnstsw ax
test ah, 0x41
je 0x4df72b
mov eax, dword [ebp - 0x40]
inc eax
add ecx, 0x18
cmp eax, 9
mov dword [ebp - 0x40], eax
mov dword [ebp + 8], ecx
jl 0x4df6c0
fstp st(0)
jmp 0x4df7a9
mov eax, dword [ebp - 0x40]
lea eax, [eax + eax*2]
add eax, eax
add eax, eax
add eax, eax
fld dword [ebp + eax - 0x108]
lea ecx, [ebp + eax - 0x10c]
fsub dword [ecx]
lea edx, [ebp + eax - 0x114]
mov dword [ebp - 4], eax
fstp dword [ebp + 8]
fld dword [edx]
fsubp st(1)
fmul dword [ebp + 8]
fld dword [ebp + eax - 0x110]
fsub dword [edx]
fstp dword [ebp + 8]
fdiv dword [ebp + 8]
fadd dword [ecx]
fld st(0)
call fcn.00451de0
cmp dword [edi + 0xb8], 0
mov edx, dword [ebp - 4]
mov dword [ebp + 8], eax
fisub dword [ebp + 8]
mov dword [edi + 0xa4], eax
mov eax, dword [ebp + edx - 0x118]
mov dword [edi + 0x10], eax
fstp dword [edi + 0xa0]
jne 0x4df823
mov dword [edi + 0xb8], 0xffffffff
cmp dword [edi + 0xb8], 0
jne 0x4df823
mov eax, dword [edi + 0x9c]
fld qword [0x55a0d8]
fstp qword [ebp - 8]
cmp eax, 4
ja 0x4df982
jmp dword [eax*4 + 0x4dfcbc]
cmp dword [edi + 0x30], 3
jne 0x4df818
mov eax, dword [edi + 0x9c]
test eax, eax
je 0x4df812
cmp eax, 3
jne 0x4df818
fmul qword [0x558268]
call fcn.00451de0
mov dword [edi + 0xb8], eax
cmp dword [edi + 0x10], 0
jne 0x4df853
mov eax, dword [edi + 0xb8]
mov ecx, dword [edi + 0xc]
add eax, eax
cmp eax, ecx
jle 0x4df845
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [edi + 0xb8], eax
mov edx, dword [edi + 0xb8]
call fcn.004dde20
mov dword [edi + 0x10], eax
mov eax, dword [edi + 0x9c]
cmp eax, 1
je 0x4df9fd
cmp eax, 4
je 0x4df9fd
mov eax, dword [edi + 0xb8]
cmp eax, 0x5014
jle 0x4dfa0f
mov eax, 0x5014
jmp 0x4dfa0f
fld qword [0x55a0d0]
jmp 0x4df7fd
mov eax, dword [edi + 0xa4]
mov dword [ebp - 0x3c], 0x4c2c
mov dword [ebp - 0x38], 0x4a38
mov dword [ebp - 0x34], 0x4844
mov dword [ebp - 0x30], 0x4650
mov dword [ebp - 0x2c], 0x445c
mov dword [ebp - 0x28], 0x4074
mov dword [ebp - 0x24], 0x3c8c
mov dword [ebp - 0x20], 0x38a4
mov dword [ebp - 0x1c], 0x30d4
mov dword [ebp - 0x18], 0x251c
mov dword [ebp - 0x14], 0xf6e
test eax, eax
jl 0x4df8f9
cmp eax, 9
jg 0x4df8f9
fild dword [ebp + eax*4 - 0x3c]
fild dword [ebp + eax*4 - 0x38]
fsub st(1)
fmul dword [edi + 0xa0]
faddp st(1)
jmp 0x4df7fd
mov eax, dword [edi + 0xb8]
cmp eax, 0x5dc0
jle 0x4dfa0f
mov eax, 0x5dc0
mov ecx, dword [edi + 0x10]
mov dword [edi + 0xb8], eax
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [edi + 0xb8]
sar eax, 1
cmp eax, edx
jl 0x4dfa2b
mov eax, edx
mov dword [edi + 0xb8], eax
mov eax, dword [edi + 0x9c]
xor edx, edx
cmp eax, edx
jne 0x4dfa5c
mov edx, dword [ebx + 0x38]
imul edx, ecx
shl edx, 4
mov dword [ebp + 8], edx
xor edx, edx
fild dword [ebp + 8]
fild dword [edi + 0x60]
fmul qword [0x558278]
fdivp st(1)
fstp dword [edi + 0x64]
cmp eax, 3
jne 0x4dfa81
mov eax, dword [ebx + 0x38]
imul eax, ecx
shl eax, 4
mov dword [ebp + 8], eax
fild dword [ebp + 8]
fild dword [edi + 0xa8]
fmul qword [0x558278]
fdivp st(1)
fstp dword [edi + 0x64]
cmp dword [edi + 0x24], edx
jne 0x4dfa8f
mov dword [edi + 0x3c], edx
mov dword [edi + 0x40], edx
mov dword [ebx + 0x74], edx
mov ecx, dword [edi + 0x3c]
mov dword [ebx + 0x70], ecx
mov eax, dword [edi + 0x40]
mov dword [ebx + 0x78], eax
cmp eax, edx
je 0x4dfaa6
mov dword [ebx + 0x74], 1
cmp ecx, edx
je 0x4dfaec
mov edx, dword [edi + 0x10]
fstp st(0)
mov eax, dword [esi + 0x14eac]
fstp st(0)
push edx
push eax
call fcn.004e26a0
add esp, 8
test eax, eax
jne 0x4dfae4
push esi
call fcn.004e11b0
add esp, 4
mov dword [edi + 0x120], 0
pop edi
pop esi
mov eax, 0xfffffffa
pop ebx
mov esp, ebp
pop ebp
ret
fldz
fld dword [0x55a104]
cmp dword [ebx + 0x78], 0
je 0x4dfb58
cmp dword [edi + 0x28], 0
jne 0x4dfb58
mov eax, dword [esi + 0x14f30]
fstp st(0)
fstp st(0)
test eax, eax
je 0x4dfb0f
push eax
call fcn.004f12d0
add esp, 4
call fcn.004f12b0
mov dword [esi + 0x14f30], eax
mov ecx, dword [edi + 0x118]
push ecx
push eax
call fcn.004f1340
mov edx, dword [edi + 0x114]
mov eax, dword [esi + 0x14f30]
push edx
push eax
call fcn.004f1360
mov ecx, dword [edi + 0x110]
mov edx, dword [esi + 0x14f30]
push ecx
push edx
call fcn.004f1380
fldz
fld dword [0x55a104]
add esp, 0x18
mov eax, dword [edi + 0x80]
mov dword [ebx + 0x80], eax
mov ecx, dword [edi + 0xb8]
mov dword [ebx + 0x24], ecx
mov edx, dword [edi + 0xbc]
mov dword [ebx + 0x28], edx
mov eax, dword [edi + 0xc]
mov dword [ebx + 0x2c], eax
mov eax, dword [edi + 0x10]
xor ecx, ecx
cmp eax, 0x5dc0
setg cl
mov dword [ebx + 0x30], eax
inc ecx
mov dword [ebx + 0x3c], ecx
mov dword [esi + 0x14b18], 0x240
mov eax, dword [edi + 0x9c]
dec eax
cmp eax, 3
ja 0x4dfc2b
jmp dword [eax*4 + 0x4dfcd0]
mov ecx, dword [ebx + 0x30]
fstp st(0)
imul ecx, dword [ebx + 0x38]
shl ecx, 4
mov dword [ebp + 8], ecx
fild dword [ebp + 8]
fild dword [edi + 0x60]
fmul qword [0x558278]
fdivp st(1)
cmp dword [edi + 0x30], 4
fstp dword [edi + 0x64]
jne 0x4dfc58
mov dword [edi + 0x30], 1
mov ecx, dword [ebx + 0x28]
fld qword [0x546440]
mov edx, dword [edi + 0x30]
mov dword [ebx + 0xa4], edx
mov dword [ebp + 8], ecx
test ecx, ecx
jle 0x4dfcbe
fild dword [ebp + 8]
fmul st(1)
fstp dword [ebp + 8]
fld dword [ebp + 8]
fst dword [ebx + 0xf0]
mov eax, dword [edi + 0xc4]
test eax, eax
jl 0x4dfc9e
add eax, ecx
mov dword [ebp + 8], eax
fild dword [ebp + 8]
fmul st(2)
fstp dword [ebx + 0xf4]
jmp 0x4dfca4
fst dword [ebx + 0xf4]
fidiv dword [ebx + 0x30]
fstp dword [ebx + 0xf0]
fld dword [ebx + 0xf4]
fidiv dword [ebx + 0x30]
fstp dword [ebx + 0xf4]
jmp 0x4dfcce
fxch st(1)
fst dword [ebx + 0xf0]
fst dword [ebx + 0xf4]
fxch st(1)
mov ecx, dword [ebx + 0x24]
fxch st(1)
fst dword [ebx + 0xe8]
mov dword [ebp + 8], ecx
fst dword [ebx + 0xec]
test ecx, ecx
jle 0x4dfd5e
mov eax, dword [ebx + 0x30]
cdq
sub eax, edx
sar eax, 1
cmp ecx, eax
jge 0x4dfd5e
fild dword [ebp + 8]
fmul st(2)
fstp dword [ebp + 8]
fld dword [ebp + 8]
fst dword [ebx + 0xec]
mov eax, dword [edi + 0xc0]
test eax, eax
jl 0x4dfd36
sub ecx, eax
mov dword [ebp + 8], ecx
fild dword [ebp + 8]
fmulp st(3)
fxch st(2)
fstp dword [ebp + 8]
fld dword [ebp + 8]
fst dword [ebx + 0xe8]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x4dfd42
fstp dword [ebx + 0xe8]
jmp 0x4dfd44
fstp st(2)
fstp st(0)
fst dword [ebx + 0xe8]
jmp 0x4dfd44
fstp st(0)
fld dword [ebx + 0xe8]
fidiv dword [ebx + 0x30]
fstp dword [ebx + 0xe8]
fidiv dword [ebx + 0x30]
fstp dword [ebx + 0xec]
jmp 0x4dfd62
fstp st(1)
fstp st(0)
call fcn.004dd810
mov eax, dword [ebx + 0x30]
push ebx
push eax
call fcn.004e17b0
add esp, 8
mov dword [ebx + 4], eax
test eax, eax
jl 0x4dfdc6
cmp dword [edi + 0x9c], 0
jne 0x4dfde3
cmp dword [ebx + 0x88], 0
je 0x4dfd99
mov dword [esi + 0x14b08], 0
jmp 0x4dfded
mov ecx, dword [ebx + 0x30]
mov edx, dword [ebx]
mov eax, dword [edi + 0x60]
push ecx
push edx
push eax
call fcn.004e15b0
mov dword [edi + 0x60], eax
mov ecx, dword [ebx + 0x30]
mov edx, dword [ebx]
push ecx
push edx
push eax
call fcn.004e1770
add esp, 0x18
mov dword [esi + 0x14b08], eax
test eax, eax
jg 0x4dfded
push esi
call fcn.004e11b0
add esp, 4
mov dword [edi + 0x120], 0
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x14b08], 1
push esi
call fcn.004e5470
mov ecx, dword [ebx]
xor eax, eax
add esp, 4
cmp dword [ebx + 0x30], 0x3e80
mov dword [ebp + 8], 0x17
setl al
lea eax, [ecx + eax*2]
lea eax, [eax + eax*2]
add eax, dword [ebx + 4]
lea ecx, [esi + 0x5370]
imul eax, eax, 0xcc
mov dword [ebp - 4], eax
lea eax, [eax + 0x55d5f0]
lea esp, [esp]
mov edx, dword [eax]
mov dword [ecx], edx
add eax, 4
add ecx, 4
sub dword [ebp + 8], 1
jne 0x4dfe30
mov eax, dword [esi + 0x53c4]
mov dword [esi + 0x5404], eax
mov ecx, dword [esi + 0x53c4]
mov edx, dword [esi + 0x53c8]
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, ecx
mov dword [esi + 0x5408], eax
mov ecx, dword [esi + 0x53c4]
mov edx, dword [esi + 0x53c8]
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [ecx + eax*2]
mov dword [esi + 0x540c], ecx
mov ecx, dword [esi + 0x53c4]
mov edx, dword [esi + 0x53c8]
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [ecx + eax*2]
add edx, eax
mov dword [esi + 0x5410], edx
mov ecx, dword [esi + 0x53c4]
mov edx, dword [esi + 0x53c8]
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [ecx + eax*4]
mov dword [esi + 0x5414], ecx
mov ecx, dword [esi + 0x53c4]
mov edx, dword [esi + 0x53c8]
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [ecx + eax*4]
add edx, eax
mov eax, dword [ebp - 4]
mov dword [esi + 0x5418], edx
mov dword [esi + 0x541c], 0x240
lea ecx, [esi + 0x53cc]
lea eax, [eax + 0x55d64c]
mov dword [ebp + 8], 0xe
mov edx, dword [eax]
mov dword [ecx], edx
add eax, 4
add ecx, 4
sub dword [ebp + 8], 1
jne 0x4dff28
mov eax, dword [esi + 0x53fc]
mov dword [esi + 0x5420], eax
mov ecx, dword [esi + 0x53fc]
mov edx, dword [esi + 0x5400]
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, ecx
mov dword [esi + 0x5424], eax
mov ecx, dword [esi + 0x53fc]
mov edx, dword [esi + 0x5400]
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [ecx + eax*2]
mov dword [esi + 0x5428], ecx
mov ecx, dword [esi + 0x53fc]
mov edx, dword [esi + 0x5400]
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [ecx + eax*2]
add edx, eax
mov dword [esi + 0x542c], edx
mov ecx, dword [esi + 0x53fc]
mov edx, dword [esi + 0x5400]
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [ecx + eax*4]
mov dword [esi + 0x5430], ecx
mov ecx, dword [esi + 0x53fc]
mov edx, dword [esi + 0x5400]
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [ecx + eax*4]
add edx, eax
mov dword [esi + 0x5434], edx
mov ecx, dword [esi + 0x53fc]
mov edx, dword [esi + 0x5400]
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, 2
mov dword [esi + 0x5438], 0xc0
lea eax, [eax + eax*2]
cmp dword [ebx + 0x3c], ecx
jne 0x4e0046
mov edx, dword [ebx + 0x38]
dec edx
neg edx
sbb edx, edx
and edx, 0xf
add edx, 0x15
mov dword [ebx + 8], edx
jmp 0x4e0059
xor eax, eax
cmp dword [ebx + 0x38], 1
setne al
lea eax, [eax*8 + 0xd]
mov dword [ebx + 8], eax
cmp dword [ebx + 0x90], 0
je 0x4e0065
add dword [ebx + 8], ecx
mov dword [esi], 0xfff88e3b
lea eax, [esi + 0x9b50]
mov edx, dword [ebx + 0x3c]
imul edx, dword [ebx + 0x38]
imul edx, edx, 0x2bc
mov dword [ebp + 8], edx
add eax, 0x20
fild dword [ebp + 8]
fstp dword [eax - 0x24]
mov edx, dword [ebx + 0x3c]
imul edx, dword [ebx + 0x38]
imul edx, edx, 0x2bc
mov dword [ebp + 8], edx
fild dword [ebp + 8]
fstp dword [eax - 0x20]
mov edx, dword [ebx + 0x3c]
imul edx, dword [ebx + 0x38]
imul edx, edx, 0x2bc
mov dword [ebp + 8], edx
fild dword [ebp + 8]
fstp dword [eax - 0x1c]
mov edx, dword [ebx + 0x3c]
imul edx, dword [ebx + 0x38]
imul edx, edx, 0x2bc
mov dword [ebp + 8], edx
fild dword [ebp + 8]
fstp dword [eax - 0x18]
mov edx, dword [ebx + 0x3c]
imul edx, dword [ebx + 0x38]
imul edx, edx, 0x2bc
mov dword [ebp + 8], edx
fild dword [ebp + 8]
fstp dword [eax - 0x14]
mov edx, dword [ebx + 0x3c]
imul edx, dword [ebx + 0x38]
imul edx, edx, 0x2bc
mov dword [ebp + 8], edx
fild dword [ebp + 8]
fstp dword [eax - 0x10]
mov edx, dword [ebx + 0x3c]
imul edx, dword [ebx + 0x38]
imul edx, edx, 0x2bc
mov dword [ebp + 8], edx
fild dword [ebp + 8]
fstp dword [eax - 0xc]
mov edx, dword [ebx + 0x3c]
imul edx, dword [ebx + 0x38]
imul edx, edx, 0x2bc
sub ecx, 1
mov dword [ebp + 8], edx
fild dword [ebp + 8]
fstp dword [eax - 8]
jne 0x4e0071
lea eax, [esi + 0x9b8c]
mov ecx, 3
jmp 0x4e0140
mov edx, dword [ebx + 0x3c]
imul edx, dword [ebx + 0x38]
imul edx, edx, 0x2bc
mov dword [ebp + 8], edx
add eax, 4
sub ecx, 1
fild dword [ebp + 8]
fstp dword [eax - 4]
jne 0x4e0140
cmp dword [edi + 0xdc], 0xffffffff
jne 0x4e0171
mov dword [edi + 0xdc], 4
mov eax, dword [edi + 0x9c]
sub eax, 1
je 0x4e0268
sub eax, 1
je 0x4e01fc
sub eax, 2
je 0x4e0268
mov dword [esi + 0x14c64], 0
cmp dword [edi + 0x2c], 0
jge 0x4e01a5
mov dword [edi + 0x2c], 3
mov eax, dword [edi + 0x9c]
mov dword [ebp + 8], eax
test eax, eax
jne 0x4e01bf
mov eax, dword [edi + 0x60]
push eax
push edi
call fcn.004e0ca0
add esp, 8
mov ecx, dword [edi + 0xa8]
push 0
push ecx
push edi
call fcn.004f0d90
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [edi + 0x9c], eax
test eax, eax
jne 0x4e01ed
mov dword [esi + 0x14f34], 0x4ef010
jmp 0x4e02fc
mov dword [esi + 0x14f34], 0x4eee10
jmp 0x4e02fc
mov eax, 0x32
sub eax, dword [edi + 0xa4]
push 0
lea edx, [eax + eax*4]
add edx, edx
push edx
push edi
call fcn.004f0d90
add esp, 0xc
cmp dword [edi + 0x8c], 0
je 0x4e022d
mov dword [esi + 0x14c64], 0
jmp 0x4e023f
xor eax, eax
cmp dword [ebx + 0x30], 0xabe0
setg al
mov dword [esi + 0x14c64], eax
mov eax, 6
cmp dword [edi + 0x2c], eax
jle 0x4e024c
mov dword [edi + 0x2c], eax
cmp dword [edi + 0x2c], 0
jge 0x4e0259
mov dword [edi + 0x2c], 3
mov dword [esi + 0x14f34], 0x4ee4d0
jmp 0x4e02fc
cmp dword [edi + 0x7c], 0
jge 0x4e0275
mov dword [edi + 0x7c], 2
cmp dword [edi + 0xf4], 0
jge 0x4e0288
mov dword [edi + 0xf4], 0
mov eax, 0x32
sub eax, dword [edi + 0xa4]
push 0
lea ecx, [eax + eax*4]
add ecx, ecx
push ecx
push edi
call fcn.004f0d90
add esp, 0xc
cmp dword [edi + 0x2c], 0
jge 0x4e02b1
mov dword [edi + 0x2c], 3
cmp dword [edi + 0x2c], 5
jge 0x4e02be
mov dword [edi + 0x2c], 0
mov eax, 7
cmp dword [edi + 0x2c], eax
jle 0x4e02cb
mov dword [edi + 0x2c], eax
cmp dword [edi + 0x8c], 0
je 0x4e02e0
mov dword [esi + 0x14c64], 0
jmp 0x4e02f2
xor edx, edx
cmp dword [ebx + 0x30], 0xabe0
setg dl
mov dword [esi + 0x14c64], edx
mov dword [esi + 0x14f34], 0x4ee910
fld dword [edi + 0xc8]
fstp dword [esi + 0x14bb0]
fld dword [edi + 0xcc]
fstp dword [esi + 0x14bb4]
cmp dword [edi + 0x100], 0
je 0x4e0341
fld dword [edi + 0x104]
fadd dword [esi + 0x14bb0]
fstp dword [esi + 0x14bb0]
fld dword [esi + 0x14bb4]
fadd dword [edi + 0x104]
fstp dword [esi + 0x14bb4]
cmp dword [edi + 0x9c], 0
je 0x4e0442
cmp dword [ebx + 0x30], 0x3e80
mov dword [ebx + 0x60], 1
mov dword [ebx + 0x64], 0xe
jge 0x4e036c
mov dword [ebx + 0x64], 8
mov eax, dword [edi + 0xac]
test eax, eax
je 0x4e03a4
mov ecx, dword [ebx + 0x30]
mov edx, dword [ebx]
push ecx
push edx
push eax
call fcn.004e15b0
mov dword [edi + 0xac], eax
mov ecx, dword [ebx + 0x30]
mov edx, dword [ebx]
push ecx
push edx
push eax
call fcn.004e1770
add esp, 0x18
mov dword [ebx + 0x60], eax
test eax, eax
jl 0x4dfdd9
mov eax, dword [edi + 0xb0]
test eax, eax
je 0x4e03dc
mov ecx, dword [ebx + 0x30]
mov edx, dword [ebx]
push ecx
push edx
push eax
call fcn.004e15b0
mov dword [edi + 0xb0], eax
mov ecx, dword [ebx + 0x30]
mov edx, dword [ebx]
push ecx
push edx
push eax
call fcn.004e1770
add esp, 0x18
mov dword [ebx + 0x64], eax
test eax, eax
jl 0x4dfdd9
mov eax, dword [ebx]
shl eax, 4
add eax, dword [ebx + 0x60]
mov ecx, dword [eax*4 + 0x55d0a8]
mov dword [edi + 0xac], ecx
mov edx, dword [ebx]
shl edx, 4
add edx, dword [ebx + 0x64]
mov eax, dword [edx*4 + 0x55d0a8]
mov dword [edi + 0xb0], eax
mov ecx, dword [ebx]
shl ecx, 4
add ecx, dword [ebx + 0x64]
mov eax, dword [ecx*4 + 0x55d0a8]
mov ecx, dword [edi + 0xa8]
cmp eax, ecx
jl 0x4e0421
mov eax, ecx
mov dword [edi + 0xa8], eax
mov edx, dword [ebx]
shl edx, 4
add edx, dword [ebx + 0x60]
mov ecx, dword [edx*4 + 0x55d0a8]
cmp ecx, eax
jle 0x4e043c
mov eax, ecx
mov dword [edi + 0xa8], eax
mov eax, dword [edi + 0x98]
mov dword [ebx + 0x54], eax
mov ecx, dword [edi + 0x24]
mov dword [ebx + 0x8c], ecx
mov edx, dword [edi + 0x9c]
mov dword [ebx + 0x58], edx
mov eax, dword [edi + 0x50]
mov dword [esi + 0x14c68], eax
mov ecx, dword [edi + 0x54]
mov dword [ebx + 0xc], ecx
mov edx, dword [edi + 0x58]
mov dword [ebx + 0x10], edx
mov eax, dword [edi + 0x5c]
mov dword [ebx + 0x14], eax
mov ecx, dword [edi + 0x60]
mov dword [ebx + 0x68], ecx
mov edx, dword [edi + 0xa8]
mov dword [ebx + 0x5c], edx
fld dword [edi + 0x64]
mov ecx, edi
fstp dword [ebx + 0xe4]
call fcn.004ddf90
mov eax, dword [edi + 0xe8]
test eax, eax
jge 0x4e04af
mov eax, dword [esi + 0x14f24]
mov dword [eax], 3
jmp 0x4e04b7
mov ecx, dword [esi + 0x14f24]
mov dword [ecx], eax
fld dword [edi + 0xec]
fdiv qword [0x55a0a0]
fld qword [0x52fbb0]
fxch st(1)
call fcn.00500de0
fstp dword [ebp + 8]
fld dword [ebp + 8]
mov edx, dword [esi + 0x14f24]
fstp dword [edx + 4]
cmp dword [edi + 0xf0], 0xffffffff
jne 0x4e04f2
mov dword [edi + 0xf0], 0
cmp dword [edi + 0xf0], 0
jne 0x4e0514
mov eax, dword [ebx + 0xa4]
cmp eax, 1
je 0x4e050a
test eax, eax
jne 0x4e0514
mov dword [edi + 0xf0], 1
mov eax, dword [edi + 0xf0]
push edi
mov dword [ebx + 0xa8], eax
call fcn.004e0ab0
add esp, 4
test eax, eax
jge 0x4e0538
push 1
push edi
call fcn.004e0a80
add esp, 8
push edi
call fcn.004e0b10
add esp, 4
test eax, eax
jge 0x4e0550
push 0
push edi
call fcn.004e0ae0
add esp, 8
push edi
call fcn.004e10a0
fcomp dword [0x52fbd0]
add esp, 4
fnstsw ax
test ah, 5
jp 0x4e0577
fldz
sub esp, 8
fstp qword [esp]
push edi
call fcn.004e1080
add esp, 0xc
push edi
call fcn.004e0ba0
or eax, 1
push eax
push edi
call fcn.004e0b70
add esp, 0xc
cmp dword [edi + 0xdc], 0
jge 0x4e059d
mov dword [edi + 0xdc], 4
fldz
fcom dword [edi + 0xe0]
fnstsw ax
test ah, 0x41
jne 0x4e05b8
fld dword [0x52fbc0]
fstp dword [edi + 0xe0]
fcom dword [edi + 0xf8]
fnstsw ax
test ah, 0x41
jne 0x4e05cd
fstp dword [edi + 0xf8]
jmp 0x4e05cf
fstp st(0)
cmp dword [edi + 0xf4], 0
jge 0x4e05e2
mov dword [edi + 0xf4], 1
fld dword [edi + 0xf8]
fstp dword [ebx + 0xac]
fld dword [edi + 0xfc]
fstp dword [ebx + 0xb0]
fld dword [edi + 0xe4]
fldz
fsubrp st(1)
fstp dword [ebp + 8]
fld dword [ebp + 8]
fst dword [ebx + 0xb4]
fmul qword [0x55a098]
fld qword [0x52fbb0]
fxch st(1)
call fcn.00500de0
fstp dword [ebp + 8]
fld dword [ebp + 8]
fstp dword [ebx + 0xb8]
fld dword [edi + 0xe0]
fstp dword [ebx + 0xbc]
mov ecx, dword [edi + 0xdc]
mov dword [ebx + 0xc0], ecx
mov edx, dword [edi + 0xd0]
mov dword [ebx + 0xc4], edx
mov eax, dword [edi + 0xd4]
mov dword [ebx + 0xc8], eax
mov ecx, dword [edi + 0xd8]
mov dword [ebx + 0xcc], ecx
mov edx, dword [edi + 0x84]
mov dword [ebx + 0x44], edx
mov eax, dword [edi + 0x88]
mov dword [ebx + 0x48], eax
mov ecx, dword [edi + 0xf4]
mov dword [ebx + 0x4c], ecx
mov edx, dword [edi + 0x94]
and edx, 2
mov dword [ebx + 0x50], edx
mov eax, dword [edi + 0x94]
sar eax, 2
and eax, 0x3f
mov dword [ebp + 8], eax
fild dword [ebp + 8]
fstp dword [ebp + 8]
fld dword [ebp + 8]
fst dword [ebx + 0xd8]
fld dword [0x55a090]
fcom st(1)
fnstsw ax
fld qword [0x546480]
test ah, 0x41
jp 0x4e06d1
fsub st(2), st(0)
fxch st(2)
fstp dword [ebx + 0xd8]
jmp 0x4e06d3
fstp st(2)
fld dword [ebx + 0xd8]
fld qword [0x55a088]
fmul st(1), st(0)
fxch st(1)
fstp dword [ebx + 0xd8]
mov ecx, dword [edi + 0x94]
sar ecx, 8
and ecx, 0x3f
mov dword [ebp + 8], ecx
fild dword [ebp + 8]
fstp dword [ebp + 8]
fld dword [ebp + 8]
fst dword [ebx + 0xd4]
fcom st(2)
fnstsw ax
test ah, 1
jne 0x4e071a
fsub st(3)
fstp dword [ebx + 0xd4]
jmp 0x4e071c
fstp st(0)
fld dword [ebx + 0xd4]
fmul st(1)
fstp dword [ebx + 0xd4]
mov edx, dword [edi + 0x94]
sar edx, 0xe
and edx, 0x3f
mov dword [ebp + 8], edx
fild dword [ebp + 8]
fstp dword [ebp + 8]
fld dword [ebp + 8]
fst dword [ebx + 0xdc]
fcom st(2)
fnstsw ax
test ah, 1
jne 0x4e075b
fsub st(3)
fstp dword [ebx + 0xdc]
jmp 0x4e075d
fstp st(0)
fld dword [ebx + 0xdc]
fmul st(1)
fstp dword [ebx + 0xdc]
mov eax, dword [edi + 0x94]
sar eax, 0x14
and eax, 0x3f
mov dword [ebp + 8], eax
fild dword [ebp + 8]
fstp dword [ebp + 8]
fld dword [ebp + 8]
fst dword [ebx + 0xe0]
fcom st(2)
fnstsw ax
fstp st(2)
test ah, 1
jne 0x4e07a2
fxch st(1)
fsubrp st(2)
fxch st(1)
fstp dword [ebx + 0xe0]
jmp 0x4e07a6
fstp st(1)
fstp st(1)
cmp dword [ebx + 0x34], 2
fmul dword [ebx + 0xe0]
fstp dword [ebp + 8]
fld dword [ebp + 8]
fadd dword [ebx + 0xdc]
fstp dword [ebx + 0xe0]
fld dword [edi + 0x14]
fstp dword [ebp + 8]
fld dword [ebp + 8]
fst dword [ebp - 0x10]
fld dword [edi + 0x14]
fmul qword [0x5333a8]
fstp dword [ebp + 8]
fld dword [ebp + 8]
fst dword [ebp - 0xc]
fstp dword [ebp - 8]
fstp dword [ebp - 4]
fld dword [ebp - 0x10]
fmul dword [edi + 0x18]
fstp dword [ebp - 0x10]
fld dword [ebp - 0xc]
fmul dword [edi + 0x18]
fstp dword [ebp - 0xc]
fld dword [ebp - 8]
fmul dword [edi + 0x1c]
fstp dword [ebp - 8]
fld dword [ebp - 4]
fmul dword [edi + 0x1c]
fstp dword [ebp - 4]
jne 0x4e0838
cmp dword [ebx + 0x38], 1
jne 0x4e0838
fld dword [ebp - 8]
fadd dword [ebp - 0x10]
fld qword [0x544488]
fmul st(1), st(0)
fxch st(1)
fstp dword [ebp - 0x10]
fld dword [ebp - 4]
fadd dword [ebp - 0xc]
fmulp st(1)
fstp dword [ebp - 0xc]
fldz
fst dword [ebp - 8]
fstp dword [ebp - 4]
fld dword [ebp - 0x10]
xor eax, eax
fstp dword [ebx + 0xf8]
fld dword [ebp - 0xc]
fstp dword [ebx + 0xfc]
fld dword [ebp - 8]
fstp dword [ebx + 0x100]
fld dword [ebp - 4]
fstp dword [ebx + 0x104]
mov dword [esi + 0x9b98], eax
mov dword [esi + 0x9b9c], eax
cmp dword [ebx + 0x58], eax
jne 0x4e088c
mov eax, dword [ebx]
inc eax
imul eax, dword [ebx + 0x68]
imul eax, eax, 0x11940
cdq
idiv dword [ebx + 0x30]
mov dword [esi + 0x9b98], edx
mov dword [esi + 0x9b9c], edx
push edi
call fcn.004dee60
push esi
call fcn.004eafd0
push edi
call fcn.004e9fc0
mov ecx, dword [edi + 0x7c]
push ecx
push ebx
call fcn.004e3b20
add esp, 0x14
pop edi
mov dword [ebx + 0x84], eax
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret