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

Disassembly:
sub esp, 0x58
fld qword [esp + 0x5c]
mov ecx, dword [esp + 0x6c]
fst qword [esp + 0x50]
movzx edx, byte [esp + 0x57]
push ebx
movzx ebx, byte [esp + 0x5a]
shl edx, 8
add edx, ebx
movzx ebx, byte [esp + 0x59]
shl edx, 8
add edx, ebx
movzx ebx, byte [esp + 0x58]
push ebp
push esi
mov esi, dword [esp + 0x7c]
shl edx, 8
push edi
xor edi, edi
xor ebp, ebp
add edx, ebx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x40], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x34], edi
test edx, edx
jns 0x51f0f9
mov dword [eax], 1
fstp qword [esp + 0x60]
movzx eax, byte [esp + 0x67]
movzx edx, byte [esp + 0x66]
shl eax, 8
add eax, edx
movzx edx, byte [esp + 0x65]
shl eax, 8
add eax, edx
movzx edx, byte [esp + 0x64]
shl eax, 8
add eax, edx
and eax, 0x7fffffff
mov edx, eax
shr edx, 0x18
mov byte [esp + 0x73], dl
mov edx, eax
shr edx, 0x10
mov byte [esp + 0x72], dl
mov edx, eax
shr edx, 8
mov byte [esp + 0x71], dl
mov byte [esp + 0x70], al
fld qword [esp + 0x6c]
jmp 0x51f0fb
mov dword [eax], edi
fst qword [esp + 0x60]
movzx eax, byte [esp + 0x67]
movzx edx, byte [esp + 0x66]
shl eax, 8
add eax, edx
movzx edx, byte [esp + 0x65]
shl eax, 8
add eax, edx
movzx edx, byte [esp + 0x64]
shl eax, 8
add eax, edx
and eax, 0x7ff00000
cmp eax, 0x7ff00000
jne 0x51f1b2
fst qword [esp + 0x6c]
movzx eax, byte [esp + 0x6f]
movzx edx, byte [esp + 0x6d]
mov dword [ecx], 0x270f
movzx ecx, byte [esp + 0x6e]
shl eax, 8
add eax, ecx
movzx ecx, byte [esp + 0x6c]
shl eax, 8
add eax, edx
shl eax, 8
add eax, ecx
jne 0x51f18d
fstp qword [esp + 0x6c]
movzx edx, byte [esp + 0x72]
movzx eax, byte [esp + 0x71]
movzx ecx, byte [esp + 0x70]
shl edx, 8
add edx, eax
shl edx, 8
add edx, ecx
test edx, 0xfffff
jne 0x51f18f
mov eax, str.Infinity
jmp 0x51f194
fstp st(0)
mov eax, 0x681e10
cmp esi, edi
je 0x51ff4d
cmp byte [eax + 3], 0
lea ecx, [eax + 3]
je 0x51f1a8
lea ecx, [eax + 8]
pop edi
mov dword [esi], ecx
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
fld qword [0x6b5b28]
fucomp st(1)
fnstsw ax
test ah, 0x44
jp 0x51f1e0
fstp st(0)
mov dword [ecx], 1
cmp esi, edi
je 0x51f1d3
mov dword [esi], 0x5ecf4d
pop edi
pop esi
pop ebp
mov eax, 0x5ecf4c
pop ebx
add esp, 0x58
ret
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x4c]
push eax
sub esp, 8
fstp qword [esp]
call fcn.0051d6f0
fld qword [esp + 0x7c]
mov ebx, dword [esp + 0x6c]
fst qword [esp + 0x70]
movzx esi, byte [esp + 0x77]
movzx ecx, byte [esp + 0x76]
movzx edx, byte [esp + 0x75]
shl esi, 8
add esi, ecx
shl esi, 8
add esi, edx
mov dword [esp + 0x20], eax
movzx eax, byte [esp + 0x74]
shl esi, 8
add esi, eax
shr esi, 0x14
add esp, 0x10
and esi, 0x7ff
je 0x51f2d9
fst qword [esp + 0x60]
fst qword [esp + 0x54]
movzx eax, byte [esp + 0x5a]
movzx ecx, byte [esp + 0x59]
movzx edx, byte [esp + 0x58]
shl eax, 8
add eax, ecx
shl eax, 8
add eax, edx
and eax, 0xfffff
mov ecx, eax
shr ecx, 0x18
mov byte [esp + 0x67], cl
mov edx, eax
mov ecx, eax
shr ecx, 8
mov byte [esp + 0x64], al
shr edx, 0x10
mov byte [esp + 0x65], cl
mov byte [esp + 0x66], dl
fld qword [esp + 0x60]
fstp qword [esp + 0x54]
movzx eax, byte [esp + 0x5b]
movzx edx, byte [esp + 0x5a]
movzx ecx, byte [esp + 0x59]
shl eax, 8
add eax, edx
movzx edx, byte [esp + 0x58]
shl eax, 8
add eax, ecx
shl eax, 8
add eax, edx
or eax, 0x3ff00000
mov ecx, eax
shr ecx, 0x18
mov byte [esp + 0x67], cl
mov edx, eax
mov ecx, eax
shr edx, 0x10
shr ecx, 8
mov byte [esp + 0x66], dl
mov byte [esp + 0x65], cl
sub esi, 0x3ff
mov dword [esp + 0x54], edi
jmp 0x51f39b
mov edx, dword [esp + 0x48]
lea esi, [edx + ebx + 0x432]
sub esp, 8
cmp esi, 0x20
fstp qword [esp]
jle 0x51f317
call fcn.0051ccb0
fld qword [esp + 0x74]
mov ecx, 0x40
fstp qword [esp]
mov edi, eax
sub ecx, esi
shl edi, cl
call fcn.0051cce0
lea ecx, [esi - 0x20]
shr eax, cl
add esp, 8
or edi, eax
jmp 0x51f32a
call fcn.0051cce0
mov ecx, 0x20
mov edi, eax
sub ecx, esi
add esp, 8
shl edi, cl
mov dword [esp + 0x60], edi
fild dword [esp + 0x60]
test edi, edi
jge 0x51f33c
fadd qword [0x681ea0]
fst qword [esp + 0x60]
sub esi, 0x433
fstp qword [esp + 0x54]
movzx eax, byte [esp + 0x5b]
movzx ecx, byte [esp + 0x5a]
fld qword [esp + 0x6c]
movzx edx, byte [esp + 0x59]
shl eax, 8
lea eax, [eax + ecx + 0xfe10]
movzx ecx, byte [esp + 0x58]
shl eax, 8
add eax, edx
shl eax, 8
add eax, ecx
mov edx, eax
shr edx, 0x18
mov byte [esp + 0x67], dl
mov ecx, eax
mov edx, eax
shr ecx, 0x10
shr edx, 8
mov byte [esp + 0x66], cl
mov byte [esp + 0x65], dl
mov dword [esp + 0x54], 1
xor edi, edi
mov byte [esp + 0x64], al
fld qword [esp + 0x60]
fsub qword [0x643130]
mov dword [esp + 0x38], esi
fmul qword [0x643128]
fadd qword [0x643120]
fild dword [esp + 0x38]
fmul qword [0x643118]
faddp st(1)
fld st(0)
call fcn.00578bf0
fldz
fcomp st(1)
mov ecx, eax
mov dword [esp + 0x18], ecx
fnstsw ax
test ah, 0x41
jne 0x51f3f1
fild dword [esp + 0x18]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x51f3f3
dec ecx
mov dword [esp + 0x18], ecx
jmp 0x51f3f3
fstp st(0)
mov dword [esp + 0x4c], 1
cmp ecx, 0x16
ja 0x51f419
fcomp qword [ecx*8 + 0x642fd8]
fnstsw ax
test ah, 5
jp 0x51f413
dec ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x4c], edi
jmp 0x51f41b
fstp st(0)
mov eax, ebx
sub eax, esi
sub eax, 1
js 0x51f42a
mov dword [esp + 0x1c], edi
jmp 0x51f432
neg eax
mov dword [esp + 0x1c], eax
xor eax, eax
cmp ecx, edi
mov dword [esp + 0x20], eax
jl 0x51f44a
add eax, ecx
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x20], eax
jmp 0x51f45a
sub dword [esp + 0x1c], ecx
mov eax, ecx
neg eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edi
mov eax, dword [esp + 0x74]
cmp eax, edi
jl 0x51f467
cmp eax, 9
jle 0x51f46b
mov dword [esp + 0x74], edi
mov eax, dword [esp + 0x74]
xor edx, edx
cmp eax, 5
mov edi, 1
jle 0x51f484
sub eax, 4
mov dword [esp + 0x74], eax
xor edi, edi
mov dword [esp + 0x30], 1
cmp eax, 5
ja case.default.0x51f491
jmp dword [eax*4 + 0x51ff58]
or ebp, 0xffffffff
mov dword [esp + 0x40], 0xffffffff
mov dword [esp + 0x24], ebp
lea esi, [ebp + 0x13]
mov dword [esp + 0x78], edx
jmp case.default.0x51f491
mov dword [esp + 0x30], edx
mov esi, dword [esp + 0x78]
cmp esi, edx
jg 0x51f4c5
mov esi, 1
mov dword [esp + 0x78], esi
mov ebp, esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x24], ebp
jmp case.default.0x51f491
mov dword [esp + 0x30], edx
mov eax, dword [esp + 0x78]
lea esi, [ecx + eax + 1]
cmp esi, edx
mov ebp, esi
lea ecx, [esi - 1]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x40], ecx
jg case.default.0x51f491
mov esi, 1
inc esi
push esi
call fcn.00573e8f
fld qword [0x635308]
mov edx, dword [esp + 0x88]
fld qword [0x643110]
mov ebx, eax
add esp, 4
mov dword [esp + 0x44], ebx
mov dword [edx], ebx
mov esi, ebx
cmp ebp, 0xe
ja 0x51f7f0
test edi, edi
je 0x51f7f0
mov eax, dword [esp + 0x18]
fld qword [esp + 0x6c]
mov edx, 2
fld st(0)
mov dword [esp + 0x24], eax
mov dword [esp + 0x60], ebp
mov dword [esp + 0x6c], edx
test eax, eax
jle 0x51f594
mov ecx, eax
and ecx, 0xf
fld qword [ecx*8 + 0x642fd8]
sar eax, 4
test al, 0x10
je 0x51f573
fxch st(2)
mov edx, 3
fdiv qword [0x6430b0]
and eax, 0xf
mov dword [esp + 0x6c], edx
fxch st(2)
test eax, eax
je 0x51f590
mov ecx, 0x643090
test al, 1
je 0x51f583
fmul qword [ecx]
inc edx
sar eax, 1
add ecx, 8
test eax, eax
jne 0x51f57c
mov dword [esp + 0x6c], edx
fdivp st(2)
jmp 0x51f5c8
neg eax
je 0x51f5c8
mov ecx, eax
and ecx, 0xf
fld qword [ecx*8 + 0x642fd8]
sar eax, 4
fmulp st(2)
test eax, eax
je 0x51f5c8
mov ecx, 0x643090
test al, 1
je 0x51f5bb
fld qword [ecx]
inc edx
fmulp st(2)
sar eax, 1
add ecx, 8
test eax, eax
jne 0x51f5b2
mov dword [esp + 0x6c], edx
fld1
xor edi, edi
cmp dword [esp + 0x4c], edi
je 0x51f5fa
fcom st(2)
fnstsw ax
test ah, 0x41
jne 0x51f5fa
cmp ebp, edi
jle 0x51f5fa
mov ebp, dword [esp + 0x40]
cmp ebp, edi
jle 0x51f7d4
dec dword [esp + 0x18]
fxch st(2)
inc edx
fmul st(4)
mov dword [esp + 0x6c], edx
fxch st(2)
fild dword [esp + 0x6c]
fmul st(3)
fadd qword [0x643108]
fst qword [esp + 0x6c]
fstp qword [esp + 0x28]
movzx edx, byte [esp + 0x2f]
movzx eax, byte [esp + 0x2e]
movzx ecx, byte [esp + 0x2d]
shl edx, 8
lea eax, [edx + eax + 0xfcc0]
movzx edx, byte [esp + 0x2c]
shl eax, 8
add eax, ecx
shl eax, 8
add eax, edx
mov ecx, eax
shr ecx, 0x18
mov byte [esp + 0x73], cl
mov edx, eax
mov ecx, eax
shr edx, 0x10
shr ecx, 8
mov byte [esp + 0x72], dl
mov byte [esp + 0x71], cl
mov byte [esp + 0x70], al
cmp ebp, edi
jne 0x51f69d
fstp st(0)
mov dword [esp + 0x14], edi
fxch st(1)
mov dword [esp + 0x28], edi
fsub st(2)
fld qword [esp + 0x6c]
fcom st(1)
fnstsw ax
test ah, 5
jnp 0x51fc18
fchs
fcompp
fnstsw ax
test ah, 0x41
jne 0x51f7d8
fstp st(2)
fstp st(0)
fstp st(0)
or eax, 0xffffffff
sub eax, dword [esp + 0x78]
mov dword [esp + 0x18], eax
jmp 0x51fe47
cmp dword [esp + 0x30], edi
je 0x51f74e
fld qword [0x681e80]
xor edi, edi
fdiv qword [ebp*8 + 0x642fd0]
fsub qword [esp + 0x6c]
fld st(3)
call fcn.00578bf0
mov dword [esp + 0x6c], eax
fild dword [esp + 0x6c]
add al, 0x30
mov byte [ebx], al
fsubp st(4)
lea esi, [ebx + 1]
fcom st(3)
fnstsw ax
test ah, 0x41
jne 0x51f70d
fstp st(3)
fstp st(2)
fstp st(3)
fstp st(0)
fstp st(0)
fstp st(0)
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00573db2
mov eax, dword [esp + 0x48]
add esp, 4
cmp esi, eax
jne 0x51ff32
mov byte [esi], 0x30
inc esi
xor ecx, ecx
jmp 0x51ff36
fxch st(3)
fld st(1)
fsub st(4)
fcomp st(1)
fnstsw ax
test ah, 5
jnp 0x51f8ec
inc edi
cmp edi, ebp
jge 0x51f7d2
fmul st(5)
fxch st(3)
fmul st(5)
fld st(0)
call fcn.00578bf0
mov dword [esp + 0x6c], eax
fisub dword [esp + 0x6c]
add al, 0x30
mov byte [esi], al
inc esi
fcom st(3)
fnstsw ax
test ah, 5
jp 0x51f70b
fstp st(0)
jmp 0x51f6dd
fstp st(0)
fld qword [ebp*8 + 0x642fd0]
fmul qword [esp + 0x6c]
fld st(2)
call fcn.00578bf0
mov dword [esp + 0x6c], eax
fild dword [esp + 0x6c]
add al, 0x30
mov byte [ebx], al
fsubp st(3)
lea esi, [ebx + 1]
cmp ebp, 1
je 0x51f79a
lea edi, [ebp - 1]
fxch st(2)
fmul st(4)
fld st(0)
call fcn.00578bf0
mov dword [esp + 0x6c], eax
fisub dword [esp + 0x6c]
add al, 0x30
mov byte [esi], al
fxch st(2)
inc esi
sub edi, 1
jne 0x51f77b
fld st(0)
fld qword [0x681e80]
fadd st(1), st(0)
fxch st(1)
fcomp st(4)
fnstsw ax
test ah, 5
jnp 0x51f8f6
fsubrp st(1)
fcomp st(2)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x51f7d8
fstp st(2)
fstp st(0)
fstp st(0)
dec esi
cmp byte [esi], 0x30
je 0x51f7c6
inc esi
jmp 0x51f6e7
fstp st(3)
fstp st(2)
fstp st(1)
mov edx, dword [esp + 0x24]
fst qword [esp + 0x6c]
mov ebp, dword [esp + 0x60]
mov esi, ebx
mov dword [esp + 0x18], edx
mov dword [esp + 0x24], ebp
jmp 0x51f7f4
fld qword [esp + 0x6c]
xor ecx, ecx
cmp dword [esp + 0x48], ecx
jl 0x51f929
mov eax, dword [esp + 0x18]
cmp eax, 0xe
jg 0x51f929
cmp dword [esp + 0x78], ecx
fld qword [eax*8 + 0x642fd8]
jge 0x51f84f
cmp ebp, ecx
jg 0x51f84f
fstp st(3)
mov dword [esp + 0x14], ecx
mov dword [esp + 0x28], ecx
jl 0x51fc31
fxch st(2)
fmulp st(1)
fcompp
fnstsw ax
test ah, 1
jne 0x51fc22
or eax, 0xffffffff
sub eax, dword [esp + 0x78]
mov dword [esp + 0x18], eax
jmp 0x51fe47
fstp st(2)
fld st(0)
fdiv st(2)
call fcn.00578bf0
mov ecx, eax
mov dword [esp + 0x6c], ecx
fild dword [esp + 0x6c]
mov al, cl
add al, 0x30
fmul st(2)
mov byte [ebx], al
lea esi, [ebx + 1]
fsubp st(1)
cmp ebp, 1
je 0x51f8e4
fld qword [0x6b5b28]
mov edi, esi
sub edi, ebx
jmp 0x51f884
fxch st(1)
fxch st(1)
fmul st(3)
fld st(1)
fucomp st(1)
fnstsw ax
test ah, 0x44
jnp 0x51ff27
fld st(0)
fdiv st(3)
call fcn.00578bf0
mov ecx, eax
mov dword [esp + 0x6c], ecx
fild dword [esp + 0x6c]
mov dl, cl
add dl, 0x30
fmul st(3)
mov byte [esi], dl
inc edi
inc esi
fsubp st(1)
cmp edi, ebp
jne 0x51f882
fstp st(3)
fstp st(0)
fld st(1)
faddp st(2)
fcom st(1)
fnstsw ax
test ah, 5
jnp 0x51f8e8
fucompp
fnstsw ax
test ah, 0x44
jp 0x51f6e7
test cl, 1
je 0x51f6e7
jmp 0x51f902
fstp st(2)
jmp 0x51f8bf
fstp st(1)
jmp 0x51f900
fstp st(3)
fstp st(2)
fstp st(3)
fstp st(0)
jmp 0x51f8fe
fstp st(3)
fstp st(2)
fstp st(1)
fstp st(2)
fstp st(0)
fstp st(0)
dec esi
cmp byte [esi], 0x39
jne 0x51f921
cmp esi, ebx
je 0x51f91a
dec esi
cmp byte [esi], 0x39
je 0x51f908
inc byte [esi]
inc esi
jmp 0x51f6e7
inc dword [esp + 0x18]
mov byte [esi], 0x30
inc byte [esi]
inc esi
jmp 0x51f6e7
cmp dword [esp + 0x30], 0
fstp st(0)
mov ecx, dword [esp + 0x38]
fstp st(1)
mov ebx, dword [esp + 0x1c]
fstp st(0)
mov edi, ecx
mov dword [esp + 0x34], 0
mov dword [esp + 0x14], 0
je 0x51f9b3
cmp dword [esp + 0x74], 2
jge 0x51f974
cmp dword [esp + 0x54], 0
je 0x51f969
mov eax, dword [esp + 0x48]
add eax, 0x433
jmp 0x51f999
mov eax, 0x36
sub eax, dword [esp + 0x5c]
jmp 0x51f999
lea eax, [ebp - 1]
cmp ecx, eax
jl 0x51f981
mov edi, ecx
sub edi, eax
jmp 0x51f98f
sub eax, ecx
add dword [esp + 0x3c], eax
add ecx, eax
mov dword [esp + 0x38], ecx
xor edi, edi
mov eax, ebp
test ebp, ebp
jge 0x51f999
sub ebx, ebp
xor eax, eax
add dword [esp + 0x1c], eax
add dword [esp + 0x20], eax
push 1
call fcn.0051cfa0
mov ecx, dword [esp + 0x3c]
add esp, 4
mov dword [esp + 0x14], eax
test ebx, ebx
jle 0x51f9d3
mov edx, dword [esp + 0x20]
test edx, edx
jle 0x51f9d3
cmp ebx, edx
mov eax, ebx
jl 0x51f9c7
mov eax, edx
sub dword [esp + 0x1c], eax
sub ebx, eax
sub edx, eax
mov dword [esp + 0x20], edx
test ecx, ecx
jle 0x51fa36
cmp dword [esp + 0x30], 0
je 0x51fa21
test edi, edi
jle 0x51fa14
mov eax, dword [esp + 0x14]
push eax
mov eax, edi
call fcn.0051dfe0
mov ecx, dword [esp + 0x14]
push ecx
push eax
mov dword [esp + 0x20], eax
call fcn.0051cfd0
mov edx, dword [esp + 0x1c]
push edx
mov ebp, eax
call fcn.00573db2
mov ecx, dword [esp + 0x48]
add esp, 0x10
mov dword [esp + 0x10], ebp
sub ecx, edi
mov eax, ecx
je 0x51fa36
mov ecx, dword [esp + 0x10]
push ecx
jmp 0x51fa2a
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x38]
push edx
call fcn.0051dfe0
mov dword [esp + 0x14], eax
add esp, 4
push 0x1c
call fcn.00573e8f
mov ecx, 1
mov dword [eax + 4], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x40]
add esp, 4
mov edi, 2
mov ebp, eax
mov dword [eax + 8], edi
mov dword [eax + 0xc], 0
mov dword [esp + 0x28], ebp
test ecx, ecx
jle 0x51fa7c
push eax
mov eax, ecx
call fcn.0051dfe0
add esp, 4
mov ebp, eax
mov dword [esp + 0x28], eax
cmp dword [esp + 0x74], edi
jge 0x51faff
fld qword [esp + 0x6c]
fst qword [esp + 0x60]
movzx eax, byte [esp + 0x63]
movzx ecx, byte [esp + 0x62]
movzx edx, byte [esp + 0x61]
shl eax, 8
add eax, ecx
movzx ecx, byte [esp + 0x60]
shl eax, 8
add eax, edx
shl eax, 8
add eax, ecx
jne 0x51faf5
sub esp, 8
fstp qword [esp]
call fcn.0051ccb0
add esp, 8
test eax, 0xfffff
jne 0x51faf7
fld qword [esp + 0x6c]
sub esp, 8
fstp qword [esp]
call fcn.0051ccb0
add esp, 8
test eax, 0x7ff00000
je 0x51faf7
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
inc edx
inc edi
mov dword [esp + 0x50], 1
jmp 0x51fb07
fstp st(0)
mov dword [esp + 0x50], 0
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
cmp dword [esp + 0x3c], 0
je 0x51fb23
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + eax*4 + 0x10]
call fcn.0051ced0
mov ecx, 0x20
sub ecx, eax
jmp 0x51fb28
mov ecx, 1
lea eax, [ecx + edi]
and eax, 0x1f
je 0x51fb39
mov ecx, 0x20
sub ecx, eax
mov eax, ecx
cmp eax, 4
jle 0x51fb43
sub eax, 4
jmp 0x51fb48
jge 0x51fb4e
add eax, 0x1c
add edx, eax
add ebx, eax
add edi, eax
test edx, edx
jle 0x51fb64
push edx
mov edx, dword [esp + 0x14]
push edx
call fcn.0051d1a0
add esp, 8
mov dword [esp + 0x10], eax
test edi, edi
jle 0x51fb78
push edi
push ebp
call fcn.0051d1a0
mov ebp, eax
add esp, 8
mov dword [esp + 0x28], ebp
cmp dword [esp + 0x4c], 0
je 0x51fbcb
mov edx, dword [esp + 0x10]
mov eax, ebp
call fcn.0051d290
test eax, eax
jge 0x51fbcb
mov ecx, dword [esp + 0x10]
dec dword [esp + 0x18]
push 0xa
xor eax, eax
call fcn.0051cd40
add esp, 4
cmp dword [esp + 0x30], 0
mov dword [esp + 0x10], eax
je 0x51fbc1
mov ecx, dword [esp + 0x14]
push 0xa
xor eax, eax
call fcn.0051cd40
add esp, 4
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x24], eax
jmp 0x51fbcf
mov eax, dword [esp + 0x24]
test eax, eax
jg 0x51fc47
cmp dword [esp + 0x74], 2
jle 0x51fc47
test eax, eax
jl 0x51f68d
push 5
xor eax, eax
mov ecx, ebp
call fcn.0051cd40
mov edx, dword [esp + 0x14]
add esp, 4
mov dword [esp + 0x28], eax
call fcn.0051d290
test eax, eax
jle 0x51f68d
mov ebx, dword [esp + 0x44]
inc dword [esp + 0x18]
mov byte [ebx], 0x31
lea esi, [ebx + 1]
jmp 0x51fe47
fstp st(1)
fstp st(0)
fstp st(2)
fstp st(0)
fstp st(0)
inc dword [esp + 0x18]
mov byte [ebx], 0x31
lea esi, [ebx + 1]
jmp 0x51fe47
fstp st(0)
or eax, 0xffffffff
sub eax, dword [esp + 0x78]
fstp st(1)
fstp st(0)
mov dword [esp + 0x18], eax
jmp 0x51fe47
cmp dword [esp + 0x30], 0
je 0x51fe88
test ebx, ebx
jle 0x51fc68
mov eax, dword [esp + 0x14]
push ebx
push eax
call fcn.0051d1a0
add esp, 8
mov dword [esp + 0x14], eax
cmp dword [esp + 0x50], 0
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x34], ebp
je 0x51fcaa
mov ecx, ebp
mov edi, dword [ecx + 4]
call fcn.0051cd10
mov edx, dword [ebp + 0x10]
mov edi, eax
lea eax, [edx*4 + 8]
push eax
add ebp, 0xc
lea ecx, [edi + 0xc]
push ebp
push ecx
call fcn.005784a0
push 1
push edi
call fcn.0051d1a0
add esp, 0x14
mov dword [esp + 0x14], eax
mov dword [esp + 0x38], 1
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x10]
push edi
push ebp
call fcn.0051d9a0
mov ebx, eax
mov eax, dword [esp + 0x3c]
mov edx, ebp
add ebx, 0x30
call fcn.0051d290
mov edx, dword [esp + 0x1c]
mov ebp, eax
push edx
mov eax, edi
call fcn.0051d2e0
mov edi, eax
add esp, 0xc
cmp dword [edi + 0xc], 0
je 0x51fcf4
mov dword [esp + 0x40], 1
jmp 0x51fd03
mov edx, dword [esp + 0x10]
mov eax, edi
call fcn.0051d290
mov dword [esp + 0x40], eax
push edi
call fcn.00573db2
add esp, 4
cmp dword [esp + 0x40], 0
jne 0x51fd2d
cmp dword [esp + 0x74], 0
jne 0x51fd2d
fld qword [esp + 0x6c]
fstp qword [esp + 0x60]
test byte [esp + 0x60], 1
je 0x51fdd7
test ebp, ebp
jl 0x51fdf0
jne 0x51fd58
cmp dword [esp + 0x74], 0
jne 0x51fd58
fld qword [esp + 0x6c]
sub esp, 8
fstp qword [esp]
call fcn.0051cce0
add esp, 8
test al, 1
je 0x51fdf0
cmp dword [esp + 0x40], 0
jg 0x51fde5
mov eax, dword [esp + 0x24]
mov byte [esi], bl
inc esi
cmp dword [esp + 0x38], eax
je 0x51fed8
mov ecx, dword [esp + 0x10]
push 0xa
xor eax, eax
call fcn.0051cd40
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x18]
add esp, 4
mov dword [esp + 0x10], eax
xor eax, eax
push 0xa
cmp ecx, edi
jne 0x51fdb3
mov ecx, edi
call fcn.0051cd40
add esp, 4
inc dword [esp + 0x38]
mov dword [esp + 0x34], eax
mov dword [esp + 0x14], eax
jmp 0x51fcb2
call fcn.0051cd40
mov dword [esp + 0x38], eax
push 0xa
xor eax, eax
mov ecx, edi
call fcn.0051cd40
add esp, 8
inc dword [esp + 0x38]
mov dword [esp + 0x14], eax
jmp 0x51fcb2
cmp ebx, 0x39
je 0x51fe28
test ebp, ebp
jle 0x51fde1
inc ebx
mov byte [esi], bl
jmp 0x51fe46
cmp ebx, 0x39
je 0x51fe28
inc bl
mov byte [esi], bl
jmp 0x51fe46
cmp dword [esp + 0x40], 0
jle 0x51fde1
mov ecx, dword [esp + 0x10]
push 1
push ecx
call fcn.0051d1a0
mov edx, eax
mov eax, dword [esp + 0x30]
add esp, 8
mov dword [esp + 0x10], edx
call fcn.0051d290
test eax, eax
jg 0x51fe20
jne 0x51fde1
test bl, 1
je 0x51fde1
mov edx, ebx
inc ebx
cmp edx, 0x39
jne 0x51fde1
mov byte [esi], 0x39
inc esi
dec esi
cmp byte [esi], 0x39
jne 0x51fe44
mov eax, dword [esp + 0x44]
cmp esi, eax
je 0x51ff1b
dec esi
cmp byte [esi], 0x39
je 0x51fe36
inc byte [esi]
inc esi
mov edx, dword [esp + 0x28]
push edx
call fcn.00573db2
add esp, 4
cmp dword [esp + 0x14], 0
je 0x51f6e7
mov eax, dword [esp + 0x34]
test eax, eax
je 0x51fe76
cmp eax, dword [esp + 0x14]
je 0x51fe76
push eax
call fcn.00573db2
add esp, 4
mov eax, dword [esp + 0x14]
push eax
call fcn.00573db2
add esp, 4
jmp 0x51f6e7
mov eax, dword [esp + 0x10]
push ebp
push eax
call fcn.0051d9a0
mov esi, dword [esp + 0x4c]
mov ebx, eax
add ebx, 0x30
mov byte [esi], bl
add esp, 8
inc esi
cmp dword [esp + 0x24], 1
jle 0x51fed8
mov edi, dword [esp + 0x24]
dec edi
mov edi, edi
mov ecx, dword [esp + 0x10]
push 0xa
xor eax, eax
call fcn.0051cd40
push ebp
push eax
mov dword [esp + 0x1c], eax
call fcn.0051d9a0
mov ebx, eax
add ebx, 0x30
mov byte [esi], bl
add esp, 0xc
inc esi
sub edi, 1
jne 0x51feb0
mov ecx, dword [esp + 0x10]
push 1
push ecx
call fcn.0051d1a0
mov edx, eax
mov eax, dword [esp + 0x30]
add esp, 8
mov dword [esp + 0x10], edx
call fcn.0051d290
test eax, eax
jg 0x51fe2c
jne 0x51ff10
test bl, 1
jne 0x51fe2c
lea esp, [esp]
dec esi
cmp byte [esi], 0x30
je 0x51ff10
jmp 0x51fe46
inc dword [esp + 0x18]
mov byte [esi], 0x31
jmp 0x51fe46
fstp st(0)
fstp st(1)
fstp st(1)
jmp 0x51f6e5
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x7c]
inc ecx
mov byte [esi], 0
mov dword [edx], ecx
mov ecx, dword [esp + 0x80]
test ecx, ecx
je 0x51ff4d
mov dword [ecx], esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret