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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xd0
movsd xmm0, qword [ebp + 8]
mov ecx, dword [0x5f3418]
xor ecx, ebp
mov dword [esp + 0xc8], ecx
cmp dword [ebp + 0x10], 2
jae 0x507628
movsd qword [esp + 0x80], xmm0
mov edi, dword [esp + 0x80]
mov dword [esp + 0x28], edi
mov eax, dword [esp + 0x84]
mov ecx, eax
and ecx, 0xfffff
add edi, 0xffffffff
mov ebx, ecx
adc ebx, 0xfffff
add edi, 1
adc ebx, 0
mov edx, eax
shr edx, 0x14
and edx, 0x7ff
add edx, 0xfffffbcd
mov dword [esp + 0x2c], eax
test eax, 0x7ff00000
mov eax, edx
mov esi, 0xfffffbce
cmove eax, esi
mov esi, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
mov eax, edi
cmove eax, esi
mov dword [esp + 0x34], eax
mov dword [esp + 8], ebx
mov eax, ebx
mov dword [esp + 0x24], ecx
cmove eax, ecx
je 0x507cdd
mov dword [esp + 0x10], edx
shld dword [esp + 8], edi, 0xb
shl edi, 0xb
mov dword [esp + 0x20], edi
xor ecx, ecx
mov dword [esp + 0xbc], ecx
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xac], ecx
mov dword [esp + 0xa8], ecx
cmp dword [ebp + 0x10], 0
jne 0x507d09
mov ecx, dword [esp + 0x1c]
lea edx, [ecx - 1]
mov dword [esp + 0x38], eax
mov edi, eax
mov ecx, dword [esp + 0x34]
shld edi, ecx, 1
lea eax, [ecx + ecx]
lea ebx, [ecx + ecx]
inc ebx
mov dword [esp + 0xc], edi
mov ecx, edx
mov esi, edi
shld edi, ebx, 0xa
shl ebx, 0xa
add ecx, 0xfffffff6
test esi, 0xfffff000
je 0x506fd4
mov dword [esp + 0x18], ebx
test edi, edi
mov ebx, edi
jns 0x507d4f
mov esi, dword [esp + 0x28]
or esi, dword [esp + 0x24]
mov esi, dword [esp + 0xc]
je 0x507d6c
mov dword [esp + 0x1c], ebx
add eax, 0xffffffff
adc esi, 0xffffffff
sub edx, ecx
mov ecx, edx
shld esi, eax, cl
shl eax, cl
xor ecx, ecx
test dl, 0x20
cmovne esi, eax
mov dword [esp + 0xc], esi
cmove ecx, eax
mov dword [esp + 0x34], ecx
mov eax, 0xffffffce
sub eax, dword [esp + 0x10]
xorps xmm0, xmm0
cvtsi2sd xmm0, eax
mulsd xmm0, qword [0x5e81a8]
movsd qword [esp], xmm0
call fcn.00546e60
fstp qword [esp + 0x90]
cvttsd2si ecx, qword [esp + 0x90]
lea eax, [ecx + 0x15b]
add ecx, 0x162
test eax, eax
cmovns ecx, eax
add ecx, ecx
and ecx, 0xfffffff0
mov edi, dword [ecx + 0x5ead04]
mov dword [esp + 0x28], ecx
mov eax, edi
mov esi, dword [esp + 8]
mul esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x38], edx
mov ebx, dword [esp + 0x20]
and ebx, 0xfffff800
mov eax, edi
mul ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x54], edx
mov ecx, dword [ecx + 0x5ead00]
mov eax, ecx
mov dword [esp + 0x24], ecx
mul esi
mov dword [esp + 0x78], edx
mov esi, eax
mov eax, ecx
mul ebx
xor eax, eax
add edx, esi
setb al
xor ecx, ecx
add edx, dword [esp + 0x20]
mov dword [esp + 0x4c], edx
adc eax, ecx
mov dword [esp + 0x40], eax
mov ebx, dword [esp + 0xc]
mov eax, ebx
mov esi, edi
mul edi
mov dword [esp + 8], edx
mov dword [esp + 0x64], eax
mov ecx, dword [esp + 0x34]
mov eax, ecx
mul edi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x58], eax
mov eax, ebx
mov edi, dword [esp + 0x24]
mul edi
mov ebx, edx
mov dword [esp + 0xc], eax
mov eax, ecx
mul edi
mov eax, dword [esp + 0x28]
movsx eax, word [eax + 0x5ead08]
add eax, dword [esp + 0x10]
mov dword [esp + 0x20], eax
xor eax, eax
add edx, dword [esp + 0xc]
setb al
add edx, dword [esp + 0x58]
mov dword [esp + 0x10], edx
mov ecx, 0
adc eax, ecx
mov dword [esp + 0xc], eax
mov edi, dword [esp + 0x1c]
mov eax, edi
mul esi
mov dword [esp + 0x44], edx
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x18]
mov eax, ecx
mul esi
mov dword [esp + 0x34], edx
mov dword [esp + 0x50], eax
mov eax, edi
mov esi, dword [esp + 0x24]
mul esi
mov edi, edx
mov dword [esp + 0x1c], eax
mov eax, ecx
mul esi
xor eax, eax
add edx, dword [esp + 0x1c]
setb al
add edx, dword [esp + 0x50]
mov ecx, 0
adc eax, ecx
add edi, dword [esp + 0x58]
mov esi, dword [esp + 0x44]
adc esi, ecx
add edi, dword [esp + 0x34]
adc esi, ecx
mov ecx, 0x80000000
add edx, ecx
mov edx, 0x80000000
adc edi, eax
adc esi, 0
add edi, 1
mov dword [esp + 0x50], edi
adc esi, 0
add ebx, dword [esp + 0x64]
mov eax, 0
mov ecx, dword [esp + 8]
adc ecx, eax
add ebx, dword [esp + 0x2c]
adc ecx, eax
add dword [esp + 0x10], edx
adc ebx, dword [esp + 0xc]
adc ecx, 0
mov eax, edi
sub eax, ebx
mov ebx, esi
mov edi, esi
mov dword [esp + 0x44], esi
sbb ebx, ecx
add eax, 1
mov dword [esp + 0x2c], eax
adc ebx, 0
mov ecx, 0xffffffcb
sub ecx, dword [esp + 0x20]
xor eax, eax
inc eax
xor edx, edx
shld edx, eax, cl
mov dword [esp + 0x24], eax
shl eax, cl
mov esi, dword [esp + 0x50]
shrd esi, edi, cl
mov edi, dword [esp + 0x44]
shr edi, cl
mov dword [esp + 0x34], ecx
test cl, 0x20
mov ecx, ebx
cmove edi, esi
cmovne edx, eax
mov esi, 0
cmovne eax, esi
mov dword [esp + 0x68], eax
add eax, 0xffffffff
mov dword [esp + 0x60], edx
adc edx, 0xffffffff
mov esi, dword [esp + 0x44]
mov dword [esp + 0x58], edx
and esi, edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x64], eax
and edx, eax
mov dword [esp + 8], edx
imul eax, dword [esp + 0x20], 0x4d1
add eax, 0x23856
sar eax, 0xc
mov dword [esp + 0x18], edi
cmp dword [eax*4 + 0x5e81b4], edi
lea edx, [eax + 1]
cmova edx, eax
mov edi, dword [esp + 0x78]
add edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x38]
mov eax, 0
adc ebx, eax
add edi, dword [esp + 0x54]
mov eax, 0
adc ebx, eax
mov eax, 0x80000000
add dword [esp + 0x4c], eax
adc edi, dword [esp + 0x40]
mov eax, ebx
adc eax, 0
sub dword [esp + 0x50], edi
mov edi, dword [esp + 0x2c]
sbb dword [esp + 0x44], eax
mov eax, dword [esp + 0x28]
movsx eax, word [eax + 0x5ead0a]
mov dword [esp + 0x78], eax
mov eax, dword [edx*4 + 0x5e81b0]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x20]
xor ebx, ebx
mov dword [eax], ebx
mov ebx, dword [esp + 8]
mov eax, edx
sar eax, 0x1f
and eax, edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], esi
test edx, edx
jle 0x5073b5
mov dword [esp + 0x28], edx
mov eax, dword [esp + 0x18]
xor edx, edx
div dword [esp + 0x20]
add al, 0x30
mov ebx, dword [ebp + 0x20]
mov ecx, dword [ebx]
mov ebx, esi
mov esi, dword [ebp + 0x18]
mov byte [esi + ecx], al
xor eax, eax
mov esi, edx
mov ecx, dword [esp + 0x34]
shld eax, edx, cl
mov edx, dword [ebp + 0x20]
mov edx, dword [edx]
mov dword [esp + 0x38], edx
inc edx
mov dword [esp + 0x18], esi
shl esi, cl
test cl, 0x20
cmovne eax, esi
mov ecx, 0
cmovne esi, ecx
mov ecx, dword [ebp + 0x20]
mov dword [ecx], edx
add esi, dword [esp + 8]
adc eax, ebx
cmp esi, edi
mov dword [esp + 0x1c], eax
sbb eax, dword [esp + 0xc]
jb 0x507aef
mov eax, dword [esp + 0x20]
mov ecx, 0xcccccccd
mul ecx
shr edx, 3
mov dword [esp + 0x20], edx
mov ebx, dword [esp + 8]
mov edx, dword [esp + 0x28]
dec edx
mov edi, dword [esp + 0x2c]
cmp esi, edi
mov ecx, dword [esp + 0xc]
sbb dword [esp + 0x1c], ecx
mov esi, dword [esp + 0x10]
jae 0x5072db
test byte [esp + 0x14], 1
je 0x507aa6
sub edx, dword [esp + 0x78]
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x20]
add edx, dword [ecx]
mov dword [eax], edx
mov eax, dword [ecx]
mov ecx, dword [ebp + 0x18]
mov byte [ecx + eax], 0
mov al, 1
mov ecx, dword [esp + 0xc8]
xor ecx, ebp
mov ebx, eax
call fcn.00512ee3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 0x20], 0
mov edx, dword [esp + 0x54]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], edx
mov eax, ebx
mov edx, 0xa
mul edx
lea ecx, [esi + esi*4]
lea ebx, [edx + ecx*2]
mov dword [esp + 8], eax
mov esi, eax
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x10], ebx
shrd esi, ebx, cl
mov eax, dword [esp + 0x24]
shr ebx, cl
mov dword [esp + 0x1c], eax
mov edx, 0xa
mul edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x24], eax
mov eax, edi
mov edx, 0xa
mul edx
test cl, 0x20
cmove ebx, esi
add bl, 0x30
mov ecx, dword [ebp + 0x20]
mov esi, dword [ecx]
mov edi, dword [ebp + 0x18]
mov byte [edi + esi], bl
mov ebx, dword [esp + 8]
mov esi, dword [esp + 0xc]
lea esi, [esi + esi*4]
lea edx, [edx + esi*2]
mov esi, dword [esp + 0x10]
and esi, dword [esp + 0x58]
and ebx, dword [esp + 0x64]
mov edi, eax
cmp ebx, eax
mov dword [esp + 0x10], esi
mov eax, esi
mov dword [esp + 0xc], edx
sbb eax, edx
mov esi, dword [ecx]
lea eax, [esi + 1]
mov dword [ecx], eax
mov ecx, dword [esp + 0x20]
lea edx, [ecx + ecx*4]
mov eax, dword [esp + 0x18]
lea eax, [eax + edx*2]
mov dword [esp + 0x20], eax
jb 0x507482
mov edx, dword [esp + 0x28]
dec edx
cmp ebx, edi
mov esi, dword [esp + 0x10]
mov eax, esi
mov ecx, dword [esp + 0xc]
sbb eax, ecx
jae 0x5073c1
jmp 0x507377
mov dword [esp + 0x5c], esi
mov dword [esp + 0x4c], edx
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x24]
mov eax, ecx
mul dword [esp + 0x50]
imul ecx, dword [esp + 0x44]
add ecx, edx
mov esi, dword [esp + 0x20]
mov edx, esi
imul edx, dword [esp + 0x50]
add edx, ecx
mov ecx, eax
sub ecx, dword [esp + 0x24]
mov dword [esp + 0x38], ecx
mov ecx, edx
sbb ecx, esi
mov dword [esp + 0x18], ecx
add eax, dword [esp + 0x24]
mov dword [esp + 0x30], eax
adc edx, esi
mov dword [esp + 0x3c], edx
mov dword [esp + 0x2c], edi
mov eax, edi
sub eax, ebx
mov ecx, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
sbb ecx, esi
mov edi, dword [esp + 0x68]
cmp eax, edi
mov eax, dword [esp + 0x60]
sbb ecx, eax
setb dl
mov dword [esp + 8], ebx
jb 0x5075ac
cmp ebx, dword [esp + 0x38]
mov eax, esi
sbb eax, dword [esp + 0x18]
mov eax, ebx
mov edi, esi
mov esi, ebx
mov eax, dword [esp + 0x1c]
jae 0x5075c0
mov esi, ebx
mov edi, dword [esp + 0x10]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x54], edi
add esi, dword [esp + 0x68]
adc edi, dword [esp + 0x60]
cmp esi, dword [esp + 0x38]
mov eax, edi
sbb eax, dword [esp + 0x18]
jb 0x507559
mov edx, dword [esp + 0x38]
mov eax, edx
sub eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
sbb ecx, dword [esp + 0x54]
mov ebx, esi
sub ebx, edx
mov edx, edi
sbb edx, dword [esp + 0x18]
cmp eax, ebx
sbb ecx, edx
jb 0x507d97
mov eax, dword [ebp + 0x18]
mov ecx, dword [esp + 0x5c]
dec byte [eax + ecx]
mov eax, dword [esp + 0x2c]
sub eax, esi
mov ebx, dword [esp + 0xc]
sbb ebx, edi
mov edx, dword [esp + 0x68]
cmp eax, edx
mov ecx, ebx
sbb ecx, dword [esp + 0x60]
setb cl
mov dword [esp + 0x48], ecx
cmp esi, dword [esp + 0x38]
mov ecx, edi
sbb ecx, dword [esp + 0x18]
jae 0x5075b8
cmp eax, edx
sbb ebx, dword [esp + 0x60]
mov dword [esp + 0x14], esi
mov dword [esp + 0x54], edi
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x48]
jae 0x50751f
jmp 0x5075c0
mov eax, ebx
mov edi, esi
mov esi, ebx
mov eax, dword [esp + 0x1c]
jmp 0x5075c0
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x48]
cmp esi, dword [esp + 0x30]
mov ebx, edi
sbb edi, dword [esp + 0x3c]
mov edi, esi
jae 0x5075d6
test dl, dl
je 0x507da6
mov esi, eax
mov ecx, 0x14
mul ecx
mov ecx, dword [esp + 0x4c]
lea ecx, [edx + ecx*4]
cmp edi, eax
mov eax, ebx
sbb eax, ecx
setae cl
mov eax, esi
mov edx, 0xffffffd8
mul edx
sub edx, esi
mov esi, dword [esp + 0x40]
shl esi, 3
lea esi, [esi + esi*4]
sub edx, esi
mov esi, edi
mov edi, dword [esp + 0x2c]
add eax, edi
adc edx, dword [esp + 0xc]
cmp eax, esi
sbb edx, ebx
setae al
and al, cl
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 8]
jmp 0x507464
jne 0x507e02
movsd qword [esp + 0x88], xmm0
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x8c]
mov eax, edx
and eax, 0xfffff
mov ebx, ecx
add ebx, 0xffffffff
mov edi, eax
adc edi, 0xfffff
add ebx, 1
adc edi, 0
test edx, 0x7ff00000
je 0x507e07
shr edx, 0x14
and edx, 0x7ff
add edx, 0xfffffbcd
mov dword [esp + 0x10], edx
shld edi, ebx, 0xb
mov dword [esp + 0x24], edi
shl ebx, 0xb
mov eax, 0xffffffce
sub eax, edx
xorps xmm0, xmm0
cvtsi2sd xmm0, eax
mulsd xmm0, qword [0x5e81a8]
movsd qword [esp], xmm0
call fcn.00546e60
fstp qword [esp + 0x98]
cvttsd2si ecx, qword [esp + 0x98]
lea eax, [ecx + 0x15b]
add ecx, 0x162
test eax, eax
cmovns ecx, eax
add ecx, ecx
and ecx, 0xfffffff0
mov dword [esp + 0x18], ebx
mov esi, dword [ecx + 0x5ead04]
mov dword [esp + 0xc], ecx
mov eax, esi
mul edi
mov edi, edx
mov dword [esp + 8], eax
mov eax, esi
mul ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], edx
mov esi, dword [ecx + 0x5ead00]
mov eax, esi
mul dword [esp + 0x24]
mov ebx, edx
mov dword [esp + 0x24], eax
mov eax, esi
mul dword [esp + 0x18]
xor ecx, ecx
add edx, dword [esp + 0x24]
setb cl
xor eax, eax
add edx, dword [esp + 0x20]
adc ecx, eax
mov eax, dword [esp + 0xc]
movsx eax, word [eax + 0x5ead08]
add eax, dword [esp + 0x10]
mov esi, eax
mov dword [esp + 0x10], eax
add ebx, dword [esp + 8]
mov eax, 0
adc edi, eax
add ebx, dword [esp + 0x28]
adc edi, eax
add edx, 0x80000000
adc ebx, ecx
adc edi, 0
mov ecx, 0xffffffcb
sub ecx, esi
xor edx, edx
inc edx
xor eax, eax
shld eax, edx, cl
shl edx, cl
mov esi, ebx
shrd esi, edi, cl
mov dword [esp + 8], esi
mov esi, edi
shr esi, cl
mov dword [esp + 0x34], ecx
test cl, 0x20
cmove esi, dword [esp + 8]
cmovne eax, edx
mov ecx, 0
cmovne edx, ecx
mov dword [esp + 0x18], edx
add edx, 0xffffffff
mov dword [esp + 0x24], eax
adc eax, 0xffffffff
mov dword [esp + 0x38], eax
and edi, eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x2c], edx
and ebx, edx
mov dword [esp + 8], ebx
mov ebx, dword [ebp + 0x14]
imul eax, dword [esp + 0x10], 0x4d1
add eax, 0x23856
sar eax, 0xc
cmp dword [eax*4 + 0x5e81b4], esi
lea edi, [eax + 1]
cmova edi, eax
mov eax, dword [esp + 0xc]
movsx eax, word [eax + 0x5ead0a]
mov dword [esp + 0x64], eax
mov edx, dword [edi*4 + 0x5e81b0]
mov eax, dword [ebp + 0x20]
mov dword [esp + 0xc], 0
mov dword [eax], ecx
mov ecx, edx
test edi, edi
mov edx, edi
jle 0x50790d
mov eax, esi
mov edi, edx
xor edx, edx
div ecx
add al, 0x30
mov esi, dword [ebp + 0x18]
mov dword [esp + 0x10], ecx
mov ecx, ebx
mov ebx, dword [esp + 0xc]
mov byte [esi + ebx], al
mov eax, dword [ebp + 0x20]
mov ebx, dword [eax]
inc ebx
mov esi, ebx
mov dword [esp + 0xc], ebx
mov dword [eax], ebx
mov ebx, ecx
mov ecx, dword [esp + 0x10]
mov esi, edx
mov eax, ecx
mov edx, 0xcccccccd
mul edx
dec edi
shr edx, 3
dec ebx
jne 0x5077e7
mov dword [esp + 0x28], edi
mov edi, ecx
mov ebx, ecx
mov ecx, dword [esp + 0x34]
shl edi, cl
xor edx, edx
test cl, 0x20
mov eax, edi
cmovne eax, edx
mov dword [esp + 0x10], eax
xor eax, eax
shld eax, ebx, cl
test cl, 0x20
cmovne eax, edi
mov edi, esi
shl edi, cl
test cl, 0x20
mov edx, edi
mov ebx, 0
cmovne edx, ebx
xor ebx, ebx
shld ebx, esi, cl
mov esi, eax
mov eax, edx
test cl, 0x20
cmovne ebx, edi
mov edi, dword [esp + 0x10]
add eax, dword [esp + 8]
adc ebx, dword [esp + 0x20]
cmp edi, 3
mov ecx, esi
sbb ecx, 0
jb 0x507aa6
mov ecx, edi
sub ecx, eax
mov edx, esi
sbb edx, ebx
cmp eax, ecx
mov ecx, ebx
sbb ecx, edx
jb 0x507ca4
cmp eax, 2
mov ecx, ebx
sbb ecx, 0
jb 0x507aa6
add eax, 0xffffffff
adc ebx, 0xffffffff
sub edi, eax
sbb esi, ebx
cmp eax, edi
sbb ebx, esi
mov esi, dword [esp + 0xc]
jb 0x507aa6
mov ecx, dword [ebp + 0x18]
mov al, byte [esi + ecx - 1]
inc al
mov byte [esi + ecx - 1], al
cmp esi, 2
mov edx, dword [esp + 0x28]
jl 0x507a95
cmp al, 0x3a
jne 0x507a95
mov ecx, dword [ebp + 0x18]
mov byte [ecx + esi - 1], 0x30
mov al, byte [ecx + esi - 2]
inc al
mov byte [ecx + esi - 2], al
dec esi
cmp esi, 1
jg 0x5078e8
jmp 0x507a95
test ebx, ebx
je 0x507dfb
test ebx, ebx
mov edi, dword [esp + 8]
jle 0x507aa6
cmp edi, 2
mov esi, dword [esp + 0x20]
mov eax, esi
sbb eax, 0
mov eax, 0
jb 0x50739b
mov dword [esp + 0x10], 0
xor ecx, ecx
inc ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], edx
mov eax, edi
mov edx, 0xa
mul edx
lea edi, [esi + esi*4]
lea ebx, [edx + edi*2]
mov dword [esp + 0x20], ebx
mov dword [esp + 8], eax
mov edi, eax
mov eax, ecx
mov ecx, dword [esp + 0x34]
shrd edi, ebx, cl
shr ebx, cl
mov dword [esp + 0x58], eax
mov edx, 0xa
mul edx
test cl, 0x20
cmove ebx, edi
add bl, 0x30
mov edi, dword [ebp + 0x18]
mov esi, dword [esp + 0xc]
mov byte [edi + esi], bl
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
lea ecx, [ecx + ecx*4]
mov dword [esp + 0x44], ecx
lea ecx, [edx + ecx*2]
mov dword [esp + 0x10], ecx
mov edx, dword [ebp + 0x20]
mov ecx, dword [edx]
mov dword [esp + 0x1c], ecx
lea esi, [ecx + 1]
mov edi, esi
mov dword [esp + 0xc], esi
mov edi, dword [esp + 8]
mov dword [edx], esi
mov edx, dword [esp + 0x28]
and edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x20]
and esi, dword [esp + 0x38]
dec edx
mov ecx, eax
cmp ebx, 2
lea ebx, [ebx - 1]
jb 0x5079e4
cmp ecx, edi
mov eax, dword [esp + 0x10]
sbb eax, esi
jb 0x507943
mov dword [esp + 0x28], edx
test ebx, ebx
mov edx, dword [esp + 0x18]
jne 0x507aa6
mov eax, edx
sub eax, ecx
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
sbb ebx, eax
cmp ecx, edx
mov edx, eax
sbb edx, dword [esp + 0x24]
jae 0x507aa6
mov dword [esp + 8], ecx
cmp ecx, dword [esp + 0xc]
sbb eax, ebx
mov edx, dword [esp + 0x28]
mov eax, 0
jae 0x50739b
mov eax, dword [esp + 0x18]
sub eax, edi
mov ebx, dword [esp + 0x24]
mov ecx, ebx
sbb ecx, esi
cmp edi, eax
mov eax, esi
sbb eax, ecx
jb 0x507aad
mov ecx, dword [esp + 8]
cmp ecx, edi
mov eax, dword [esp + 0x10]
sbb eax, esi
jae 0x507aa6
sub edi, ecx
sbb esi, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
sub eax, edi
sbb ebx, esi
cmp edi, eax
sbb esi, ebx
jb 0x507aa6
mov ecx, dword [ebp + 0x18]
mov esi, dword [esp + 0x1c]
mov al, byte [ecx + esi]
inc al
mov byte [ecx + esi], al
test esi, esi
jle 0x507a95
inc esi
cmp al, 0x3a
jne 0x507a95
mov ecx, dword [ebp + 0x18]
mov byte [ecx + esi - 1], 0x30
mov al, byte [ecx + esi - 2]
inc al
mov byte [ecx + esi - 2], al
dec esi
cmp esi, 1
jg 0x507a79
mov eax, dword [ebp + 0x18]
cmp byte [eax], 0x3a
jne 0x507ae6
mov eax, dword [ebp + 0x18]
mov byte [eax], 0x31
inc edx
jmp 0x507ae6
xor eax, eax
jmp 0x50739b
mov eax, esi
shld eax, edi, 1
lea ecx, [edi + edi]
mov ebx, dword [esp + 0x18]
sub ebx, ecx
mov ecx, dword [esp + 0x24]
sbb ecx, eax
mov edx, 0x14
mov eax, dword [esp + 0x58]
mul edx
cmp ebx, eax
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x44]
lea eax, [edx + eax*4]
mov edx, dword [esp + 0x28]
sbb ecx, eax
jb 0x507a43
sub edx, dword [esp + 0x64]
jmp 0x507386
mov edx, dword [esp + 0x50]
mov eax, edx
add eax, 0xffffffff
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x44]
mov eax, ecx
adc eax, 0xffffffff
mov dword [esp + 0x40], eax
add edx, 1
mov dword [esp + 0x6c], edx
adc ecx, 0
mov dword [esp + 0x70], ecx
xor ebx, ebx
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x20]
shld ebx, edi, cl
shl edi, cl
test cl, 0x20
cmovne ebx, edi
mov ecx, 0
cmovne edi, ecx
mov ecx, dword [esp + 0x2c]
sub ecx, esi
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x1c]
sbb edx, eax
mov dword [esp + 0x14], ecx
cmp ecx, edi
mov ecx, edx
sbb ecx, ebx
setb cl
mov dword [esp + 0x5c], ecx
cmp esi, dword [esp + 0x4c]
sbb eax, dword [esp + 0x40]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x7c], edi
jae 0x507c3a
cmp dword [esp + 0x14], edi
sbb edx, ebx
mov edx, esi
mov eax, dword [esp + 0x1c]
mov ecx, eax
mov ebx, dword [esp + 8]
jb 0x507c4e
mov edx, esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x74], eax
mov ecx, eax
add edx, edi
mov dword [esp + 0x14], edx
adc ecx, dword [esp + 0x3c]
cmp edx, dword [esp + 0x4c]
mov edi, ecx
mov edx, ecx
sbb edx, dword [esp + 0x40]
jb 0x507bd5
mov eax, dword [esp + 0x4c]
mov ecx, eax
sub ecx, dword [esp + 0x48]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x40]
sbb ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x14]
sub edx, eax
mov eax, edi
sbb eax, dword [esp + 0x40]
cmp dword [esp + 0x30], edx
sbb ecx, eax
jb 0x507e25
mov ecx, dword [ebp + 0x18]
mov edx, dword [esp + 0x38]
dec byte [ecx + edx]
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sbb edx, edi
mov dword [esp + 0x30], edi
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x48], eax
cmp eax, edi
mov ecx, edx
mov eax, dword [esp + 0x3c]
sbb ecx, eax
setb cl
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x30]
sbb ecx, dword [esp + 0x40]
jae 0x507c46
cmp dword [esp + 0x48], edi
sbb edx, eax
mov edx, dword [esp + 0x14]
mov dword [esp + 0x48], edx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x74], ecx
jae 0x507b8f
jmp 0x507c4e
mov edx, esi
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 8]
jmp 0x507c4e
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
cmp edx, dword [esp + 0x6c]
mov dword [esp + 0x30], ecx
mov eax, ecx
sbb eax, dword [esp + 0x70]
mov ecx, dword [esp + 0xc]
mov edi, edx
mov dword [esp + 0x14], edx
jae 0x507c73
cmp byte [esp + 0x5c], 0
je 0x507e3a
mov eax, dword [esp + 0x2c]
add eax, 0xfffffffc
adc ecx, 0xffffffff
xor edx, edx
inc edx
cmp edx, edi
mov edx, 0
mov edi, dword [esp + 0x30]
sbb edx, edi
setb dl
cmp eax, dword [esp + 0x14]
sbb ecx, edi
setae al
and al, dl
mov dword [esp + 0x14], eax
jmp 0x50735a
mov ecx, ebx
shld ecx, eax, 1
lea edx, [eax + eax]
mov dword [esp + 8], eax
mov eax, esi
mov esi, edi
sub esi, edx
mov edx, eax
sbb edx, ecx
xor ecx, ecx
xor edi, edi
inc edi
cmp edi, esi
mov esi, eax
mov eax, dword [esp + 8]
mov edi, dword [esp + 0x10]
sbb ecx, edx
jae 0x5078a8
mov edx, dword [esp + 0x28]
jmp 0x507ae6
mov edx, 0xfffffbce
mov edi, esi
mov ecx, dword [esp + 0x24]
mov dword [esp + 8], ecx
mov ebx, dword [esp + 8]
shld ebx, edi, 1
add edi, edi
dec edx
bt ecx, 0x13
mov dword [esp + 8], ebx
mov ecx, ebx
jb 0x506f79
jmp 0x507cec
cvtsd2ss xmm0, xmm0
lea ecx, [esp + 0xa4]
movss dword [ecx], xmm0
lea esi, [esp + 0xa8]
mov dword [esp], esi
lea edi, [esp + 0xb8]
mov edx, edi
call fcn.00595a50
mov eax, dword [edi]
mov dword [esp + 0x34], eax
mov eax, dword [edi + 4]
mov dword [esp + 0xc], eax
mov eax, dword [esi]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x1c], eax
jmp 0x50702e
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x18]
shld ebx, edi, 1
add edi, edi
mov dword [esp + 0x18], edi
dec ecx
test ebx, ebx
js 0x506ffa
jmp 0x507d53
test dword [esp + 0x2c], 0x7fe00000
je 0x507008
mov edx, dword [esp + 0x1c]
add edx, 0xfffffffe
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
shld edi, eax, 2
shl eax, 2
mov esi, edi
jmp 0x507008
xor edx, edx
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x54]
jmp 0x5075b2
mov edx, edi
add edx, dword [esp + 0x68]
mov eax, ebx
adc eax, dword [esp + 0x60]
cmp edx, dword [esp + 0x30]
mov ecx, eax
sbb ecx, dword [esp + 0x3c]
jb 0x507dea
mov esi, edi
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x18], edi
sub ecx, edi
mov esi, dword [esp + 0x3c]
sbb esi, ebx
sub edx, dword [esp + 0x30]
mov edi, dword [esp + 0x18]
sbb eax, dword [esp + 0x3c]
cmp edx, ecx
sbb eax, esi
mov eax, dword [esp + 0x1c]
jae 0x5075d6
mov dword [esp + 0x14], 0
mov edi, dword [esp + 0x2c]
jmp 0x50761f
mov edi, edx
jmp 0x507833
call fcn.00549f00
mov edx, 0xfffffbce
mov ebx, ecx
mov edi, eax
shld edi, ebx, 1
add ebx, ebx
dec edx
bt eax, 0x13
mov eax, edi
jb 0x50767a
jmp 0x507e10
mov dword [esp + 0x5c], 0
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x74]
jmp 0x507c4e
mov ecx, dword [esp + 0x7c]
add ecx, edi
mov eax, dword [esp + 0x3c]
adc eax, dword [esp + 0x30]
cmp ecx, dword [esp + 0x6c]
mov dword [esp + 0x3c], eax
sbb eax, dword [esp + 0x70]
jae 0x507e63
mov dword [esp + 0x14], 0
jmp 0x507356
mov edx, edi
mov edi, ecx
mov ebx, dword [esp + 0x6c]
mov eax, ebx
sub eax, edx
mov edx, dword [esp + 0x70]
mov ecx, edx
sbb ecx, dword [esp + 0x30]
sub edi, ebx
mov ebx, dword [esp + 0x3c]
sbb ebx, edx
cmp edi, eax
mov edi, dword [esp + 0x14]
sbb ebx, ecx
mov ecx, dword [esp + 0xc]
mov ebx, dword [esp + 8]
jae 0x507c73
mov dword [esp + 0x14], 0
jmp 0x50735a