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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x8c
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x14], edx
mov esi, eax
mov edi, eax
mov ebx, eax
shr esi, 0x17
shr edi, 0x1f
and ebx, 0x7fffff
mov ecx, esi
mov dword [esp + 0x28], edi
movzx edx, cl
cmp edx, 0xff
je 0x40cd80
mov edi, ebx
or edi, edx
jne 0x40ccc0
cmp byte [esp + 0x28], 0
mov eax, dword [esp + 0x10]
jne 0x40d010
mov dword [eax], str.0e00
mov dword [eax + 4], 5
mov dword [eax + 8], 1
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [edx - 0x7f]
cmp edi, 0x17
ja 0x40d060
mov ecx, 0x17
sub ecx, edi
mov edi, ebx
or edi, 0x800000
mov ebp, edi
mov dword [esp + 0x18], edi
shr ebp, cl
mov edi, ebp
shl edi, cl
cmp dword [esp + 0x18], edi
je 0x40cde0
and eax, 1
sub edx, 0x98
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x18]
shl eax, 2
and esi, 0xfe
mov edi, eax
mov dword [esp + 0x2c], eax
lea eax, [eax + 2]
mov dword [esp + 0x30], eax
sete al
test ebx, ebx
setne cl
or eax, ecx
movzx eax, al
mov dword [esp + 0x60], eax
not eax
add eax, edi
mov dword [esp + 0x38], eax
imul eax, edx, 0xfff4d105
mov edi, eax
shr edi, 0x14
add edx, edi
mov dword [esp + 0x50], edi
mov eax, edx
mov dword [esp + 0x3c], edx
imul edx, edx, 0xffed6cb1
mov dword [esp + 0x6c], edi
neg eax
shr edx, 0x13
sub edx, 0x3c
sub edi, edx
mov dword [esp + 0x20], edi
cmp eax, 0x2e
jbe 0x40d0cb
mov edx, 0x2f
call sym._v_fixed_index.part.56
lea esi, [esi]
lea esi, [esi]
mov eax, dword [esp + 0x10]
test ebx, ebx
je 0x40cda7
mov dword [eax], 0x423eba
mov dword [eax + 4], 3
mov dword [eax + 8], 1
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp byte [esp + 0x28], 0
je 0x40cff0
mov dword [eax], str._inf
mov dword [eax + 4], 4
mov dword [eax + 8], 1
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, ebp
mov edx, 0xcccccccd
mul edx
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
cmp ebp, eax
jne 0x40d8b0
mov ecx, 1
mov ebx, 0xcccccccd
lea esi, [esi]
lea esi, [esi]
mov eax, ebp
mov esi, ecx
add ecx, 1
mul ebx
mov ebp, edx
shr ebp, 3
mov eax, ebp
mul ebx
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
cmp ebp, eax
je 0x40ce10
mov dword [esp + 0x3c], esi
xor edx, edx
mov eax, ebp
call sym._strconv__dec_digits
mov edx, 0
mov edi, eax
mov dword [esp + 0x18], eax
add eax, 7
cmovs eax, edx
test edi, edi
jg 0x40d030
mov edx, 1
sub edx, edi
mov dword [esp + 0x2c], edx
call sym._vcalloc_noscan
cmp byte [esp + 0x28], 0
mov edi, eax
je 0x40d3d0
test eax, eax
je 0x40d850
mov byte [edi], 0x2d
mov ecx, 2
mov esi, 1
cmp dword [esp + 0x18], 1
jle 0x40d800
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
add eax, 1
mov dword [esp + 0x20], eax
cmp eax, ecx
jge 0x40d7e0
sub ecx, eax
xor edx, edx
mov eax, dword [ecx*4 + 0x42437c]
lea eax, [eax + eax*4]
add eax, ebp
div dword [ecx*4 + 0x424380]
mov ebp, eax
mov eax, dword [esp + 0x20]
add eax, esi
mov dword [esp + 0x28], eax
lea ebx, [edi + eax]
xor ecx, ecx
add esi, 1
lea esi, [esi]
lea esi, [esi]
mov eax, 0xcccccccd
sub ebx, 1
mul ebp
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ebp, eax
lea eax, [ebp + 0x30]
mov ebp, edx
mov byte [ebx + 1], al
lea eax, [esi + ecx]
add ecx, 1
cmp dword [esp + 0x14], ecx
jg 0x40cee0
mov ebx, dword [esp + 0x28]
mov esi, eax
sub ebx, dword [esp + 0x14]
lea ecx, [eax + 1]
mov eax, dword [esp + 0x20]
test eax, eax
jle 0x40cf31
mov byte [edi + ebx], 0x2e
mov ebx, dword [esp + 0x28]
mov esi, ecx
add ecx, 1
sub ebx, 1
sub ebx, dword [esp + 0x14]
test ebx, ebx
js 0x40cf55
mov eax, ebp
mov edx, 0xcccccccd
mov esi, ecx
add ecx, 1
mul edx
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ebp, eax
mov eax, ebp
add eax, 0x30
mov byte [edi + ebx], al
mov ebx, dword [esp + 0x2c]
test ebx, ebx
jle 0x40cf79
lea eax, [edi + esi]
mov dword [esp + 8], ebx
add esi, ebx
mov dword [esp + 4], 0x30
mov dword [esp], eax
call sym._memset
lea ecx, [esi + 1]
mov eax, dword [esp + 0x18]
add eax, dword [esp + 0x3c]
mov byte [edi + esi], 0x65
add ecx, edi
mov ebx, eax
lea ebp, [esi + 2]
sub ebx, 1
js 0x40d420
mov byte [ecx], 0x2b
mov eax, ebx
mov edx, 0x66666667
imul edx
mov eax, ebx
sar eax, 0x1f
sar edx, 2
sub edx, eax
lea eax, [edx + 0x30]
mov byte [edi + ebp], al
lea eax, [edx + edx*4]
add eax, eax
mov byte [edi + esi + 4], 0
sub ebx, eax
lea eax, [esi + 4]
add ebx, 0x30
mov byte [edi + esi + 3], bl
test edi, edi
je 0x40db74
mov esi, dword [esp + 0x10]
mov dword [esi + 4], eax
mov eax, esi
mov dword [esi + 8], 0
mov dword [esi], edi
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [eax], str.inf
mov dword [eax + 4], 4
mov dword [eax + 8], 1
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [eax], str._0e00
mov dword [eax + 4], 6
mov dword [eax + 8], 1
jmp 0x40cd9c
call sym._vcalloc_noscan
cmp byte [esp + 0x28], 0
mov edi, eax
je 0x40d400
test eax, eax
je 0x40d880
mov dword [esp + 0x2c], 0
jmp 0x40ce79
test edx, edx
jne 0x40d42f
and eax, 1
and esi, 0xfe
mov dword [esp + 0x20], 0x3b
mov dword [esp + 0x68], eax
sete al
test ebx, ebx
setne dl
mov dword [esp + 0x3c], 0xffffffd2
or eax, edx
mov dword [esp + 0x6c], 0x69
mov edx, 0x2e
movzx edi, al
lea eax, [ebx*4]
mov dword [esp + 0x50], 0x69
lea esi, [eax + 2]
mov dword [esp + 0x2c], eax
sub eax, 1
mov dword [esp + 0x60], edi
sub eax, edi
mov dword [esp + 0x30], esi
mov dword [esp + 0x38], eax
mov eax, 0x2e
mov edi, dword [esp + 0x2c]
mov esi, dword [eax*8 + 0x4241e0]
add edx, 0x40
xor ebx, ebx
mov ebp, dword [eax*8 + 0x4241e4]
sub edx, dword [esp + 0x6c]
mov dword [esp + 0x7c], 0
mov eax, edi
mov dword [esp + 0x48], edx
mul esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x78], edi
mov dword [esp + 0x18], ebp
mov esi, eax
mov eax, dword [esp + 0x2c]
mov edi, edx
mov ecx, edx
mov dword [esp + 0x40], esi
mov esi, dword [esp + 0x30]
mul ebp
add ecx, eax
movzx ecx, byte [esp + 0x48]
adc ebx, edx
xor edx, edx
mov eax, ebx
shld edx, ebx, cl
xor ebx, ebx
shl eax, cl
test cl, 0x20
mov ecx, dword [esp + 0x2c]
cmovne edx, eax
cmovne eax, ebx
imul ecx, ebp
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], edx
lea eax, [ecx + edi]
movzx ecx, byte [esp + 0x20]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
shrd eax, edx, cl
shr edx, cl
test cl, 0x20
cmovne eax, edx
add eax, dword [esp + 0x70]
xor ebx, ebx
mov ebp, eax
mov eax, esi
mul dword [esp + 0x58]
mov dword [esp + 0x30], eax
mov eax, esi
mov ecx, edx
mov dword [esp + 0x34], edx
mul edi
add eax, ecx
movzx ecx, byte [esp + 0x48]
adc edx, ebx
xor ebx, ebx
mov eax, edx
shl eax, cl
test cl, 0x20
movzx ecx, byte [esp + 0x20]
cmovne eax, ebx
imul esi, edi
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x30]
add edi, esi
mov esi, edi
shrd ebx, edi, cl
shr esi, cl
test cl, 0x20
cmovne ebx, esi
add eax, ebx
xor ebx, ebx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x58]
mul dword [esp + 0x38]
mov edi, edx
mov esi, eax
mov ecx, edx
mov eax, dword [esp + 0x38]
mul dword [esp + 0x18]
add ecx, eax
movzx ecx, byte [esp + 0x48]
adc ebx, edx
xor edx, edx
mov eax, ebx
shld edx, ebx, cl
xor ebx, ebx
shl eax, cl
test cl, 0x20
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x18], esi
cmovne edx, eax
cmovne eax, ebx
mov ebx, 0xcccccccd
imul ecx, dword [esp + 0x38]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
lea eax, [ecx + edi]
movzx ecx, byte [esp + 0x20]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
shrd eax, edx, cl
shr edx, cl
test cl, 0x20
cmovne eax, edx
add eax, dword [esp + 0x30]
mov dword [esp + 0x20], eax
mul ebx
mov eax, dword [esp + 0x50]
mov edi, edx
shr edi, 3
test eax, eax
jne 0x40d760
mov byte [esp + 0x18], 0
mov eax, dword [esp + 0x68]
test eax, eax
jne 0x40d9c0
movzx eax, byte [esp + 0x60]
mov byte [esp + 0x2c], 1
mov ecx, 1
mov byte [esp + 0x38], al
mov eax, dword [esp + 0x40]
mov edx, 0xcccccccd
mul edx
mov ebx, edx
shr ebx, 3
cmp ebx, edi
jbe 0x40db42
mov eax, ebx
mov dword [esp + 0x30], 0
mov ebx, ebp
mov esi, 0xcccccccd
mov ebp, eax
jmp 0x40d2a2
mov edi, edx
cmp byte [esp + 0x38], 0
je 0x40d2c0
mov eax, dword [esp + 0x20]
mul esi
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
cmp dword [esp + 0x20], eax
sete byte [esp + 0x38]
cmp byte [esp + 0x18], 0
mov eax, ebx
mov dword [esp + 0x20], edi
sete cl
mul esi
and cl, byte [esp + 0x2c]
add dword [esp + 0x30], 1
mov byte [esp + 0x2c], cl
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ebx, eax
mov eax, ebp
mov byte [esp + 0x18], bl
mov ebx, edx
mul esi
mov eax, edi
mov ebp, edx
mul esi
shr ebp, 3
shr edx, 3
cmp edx, ebp
jb 0x40d2a0
mov ebp, ebx
cmp byte [esp + 0x38], 0
je 0x40d378
mov eax, edi
mov edx, 0xcccccccd
mov ebx, 0xcccccccd
movzx esi, byte [esp + 0x2c]
mul edx
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
cmp edi, eax
jne 0x40d378
lea esi, [esi]
cmp byte [esp + 0x18], 0
sete cl
add dword [esp + 0x30], 1
mov eax, ecx
mov ecx, ebp
and eax, esi
mov byte [esp + 0x20], al
mov esi, eax
mov eax, ebp
mul ebx
shr edx, 3
lea eax, [edx + edx*4]
mov ebp, edx
add eax, eax
sub ecx, eax
mov eax, edi
mul ebx
mov byte [esp + 0x18], cl
mov edi, edx
shr edi, 3
mov eax, edi
mul ebx
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
cmp edi, eax
je 0x40d330
mov ecx, esi
mov esi, dword [esp + 0x30]
add dword [esp + 0x3c], esi
cmp byte [esp + 0x18], 5
jne 0x40d830
test cl, cl
je 0x40d830
test ebp, 1
jne 0x40d3c0
cmp ebp, edi
jne 0x40ce32
test byte [esp + 0x38], 1
je 0x40d3c0
mov eax, dword [esp + 0x68]
test eax, eax
je 0x40ce32
lea esi, [esi]
lea esi, [esi]
add ebp, 1
jmp 0x40ce32
mov eax, dword [esp + 0x18]
lea esi, [eax - 2]
mov dword [esp + 0x14], esi
test esi, esi
jle 0x40d8a0
mov dword [esp + 0x28], eax
xor esi, esi
mov dword [esp + 0x20], eax
jmp 0x40cecb
mov ecx, 1
mov dword [esp + 0x2c], 0
xor esi, esi
jmp 0x40ce86
mov ebx, 1
mov byte [ecx], 0x2d
sub ebx, eax
jmp 0x40cf98
mov edi, ebx
and eax, 1
or edi, 0x800000
mov dword [esp + 0x68], eax
shl edi, 2
and esi, 0xfe
lea eax, [edi + 2]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], eax
sete al
test ebx, ebx
setne cl
or eax, ecx
movzx eax, al
mov dword [esp + 0x60], eax
not eax
add eax, edi
mov dword [esp + 0x38], eax
sub edx, 0x98
js 0x40cd31
imul eax, edx, 0x13441
mov ebx, edi
mov ecx, 0x40
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], ebx
shr eax, 0x12
mov edi, eax
mov dword [esp + 0x3c], eax
mov esi, eax
imul eax, eax, 0x12934f
sub esi, edx
mov ebp, dword [edi*8 + 0x4240e4]
mov dword [esp + 0x58], edi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x18], ebp
shr eax, 0x13
lea esi, [esi + eax + 0x3b]
mov eax, dword [edi*8 + 0x4240e0]
mov dword [esp + 0x48], esi
sub ecx, esi
mov dword [esp + 0x50], eax
mov eax, ebx
mul dword [esp + 0x50]
xor ebx, ebx
mov dword [esp + 0x20], ecx
mov esi, eax
mov eax, dword [esp + 0x2c]
mov edi, edx
mov ecx, edx
mul ebp
add ecx, eax
movzx ecx, byte [esp + 0x20]
adc ebx, edx
xor edx, edx
mov eax, ebx
shld edx, ebx, cl
xor ebx, ebx
shl eax, cl
test cl, 0x20
mov ecx, dword [esp + 0x2c]
cmovne edx, eax
cmovne eax, ebx
imul ecx, ebp
mov dword [esp + 0x40], eax
mov eax, esi
mov dword [esp + 0x44], edx
lea esi, [ecx + edi]
movzx ecx, byte [esp + 0x48]
mov edx, esi
shrd eax, esi, cl
shr edx, cl
test cl, 0x20
movzx ecx, byte [esp + 0x20]
cmovne eax, edx
add eax, dword [esp + 0x40]
xor ebx, ebx
mov ebp, eax
mov eax, dword [esp + 0x30]
mul dword [esp + 0x50]
mov edi, edx
mov esi, eax
mov eax, dword [esp + 0x30]
mul dword [esp + 0x18]
mov dword [esp + 0x44], edi
add eax, edi
adc edx, ebx
xor ebx, ebx
mov eax, edx
shl eax, cl
test cl, 0x20
mov ecx, dword [esp + 0x18]
cmovne eax, ebx
imul ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x44]
lea edi, [ecx + ebx]
movzx ecx, byte [esp + 0x48]
shrd esi, edi, cl
shr edi, cl
test cl, 0x20
cmovne esi, edi
mov ebx, esi
add ebx, eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x40], ebx
mul dword [esp + 0x38]
xor ebx, ebx
mov esi, eax
mov edi, edx
mov ecx, edx
mov eax, dword [esp + 0x38]
mul dword [esp + 0x18]
add ecx, eax
movzx ecx, byte [esp + 0x20]
adc ebx, edx
xor edx, edx
mov eax, ebx
shld edx, ebx, cl
xor ebx, ebx
shl eax, cl
test cl, 0x20
mov ecx, dword [esp + 0x18]
cmovne edx, eax
cmovne eax, ebx
mov ebx, 0xcccccccd
imul ecx, dword [esp + 0x38]
mov dword [esp + 0x20], eax
mov eax, esi
mov dword [esp + 0x24], edx
lea esi, [ecx + edi]
movzx ecx, byte [esp + 0x48]
mov edx, esi
shr edx, cl
shrd eax, esi, cl
test cl, 0x20
cmovne eax, edx
add eax, dword [esp + 0x20]
mov dword [esp + 0x20], eax
mul ebx
mov eax, dword [esp + 0x58]
shr edx, 3
mov edi, edx
test eax, eax
je 0x40d6b0
mov eax, dword [esp + 0x40]
mov byte [esp + 0x18], 0
lea edx, [eax - 1]
mov eax, edx
mul ebx
shr edx, 3
cmp edx, edi
jbe 0x40d8c0
cmp dword [esp + 0x58], 9
jbe 0x40d6b5
mov eax, dword [esp + 0x40]
mov edx, 0xcccccccd
mul edx
mov ecx, edx
shr ecx, 3
cmp ecx, edi
jbe 0x40db37
mov dword [esp + 0x20], 0
mov esi, 0xcccccccd
jmp 0x40d654
mov ebp, ebx
mov edi, edx
mov eax, ebp
add dword [esp + 0x20], 1
mul esi
mov eax, ecx
mov ebx, edx
mul esi
mov eax, edi
shr ebx, 3
mov ecx, edx
mul esi
shr ecx, 3
shr edx, 3
cmp ecx, edx
ja 0x40d650
lea eax, [ebx + ebx*4]
mov ecx, ebp
mov esi, dword [esp + 0x20]
add dword [esp + 0x3c], esi
add eax, eax
sub ecx, eax
mov byte [esp + 0x18], cl
cmp edi, ebx
sete al
cmp byte [esp + 0x18], 4
seta dl
or eax, edx
movzx eax, al
lea ebp, [eax + ebx]
jmp 0x40ce32
mov byte [esp + 0x18], 0
mov eax, dword [esp + 0x2c]
mov esi, 0xcccccccd
mul esi
mov ebx, edx
shr ebx, 2
mov ecx, ebx
lea eax, [ebx + ebx*4]
mov ebx, dword [esp + 0x2c]
sub ebx, eax
je 0x40d730
mov eax, dword [esp + 0x68]
test eax, eax
jne 0x40d9ec
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x38]
mov ecx, 0xcccccccd
mul esi
mov esi, edx
shr esi, 2
lea eax, [esi + esi*4]
sub ebx, eax
jne 0x40db66
lea esi, [esi]
mov eax, esi
add ebx, 1
mul ecx
shr edx, 2
lea eax, [edx + edx*4]
sub esi, eax
mov esi, edx
je 0x40d700
cmp ebx, dword [esp + 0x58]
mov byte [esp + 0x2c], 0
setae byte [esp + 0x38]
xor ecx, ecx
movzx eax, byte [esp + 0x38]
jmp 0x40d7cb
mov eax, ecx
add ebx, 1
mul esi
shr edx, 2
lea eax, [edx + edx*4]
sub ecx, eax
mov ecx, edx
je 0x40d730
cmp ebx, dword [esp + 0x58]
mov byte [esp + 0x38], 0
setae cl
mov byte [esp + 0x2c], cl
mov eax, ecx
jmp 0x40d7cb
mov eax, dword [esp + 0x40]
mov byte [esp + 0x18], 0
lea edx, [eax - 1]
mov eax, edx
mul ebx
shr edx, 3
cmp edx, edi
jbe 0x40da46
cmp dword [esp + 0x50], 1
je 0x40d249
mov eax, dword [esp + 0x50]
cmp eax, 0x1e
ja 0x40d629
mov esi, dword [esp + 0x2c]
mov edx, eax
mov eax, 0x20
sub edx, 1
test esi, esi
je 0x40d7bb
mov eax, esi
neg eax
and eax, esi
imul eax, eax, 0x77cb531
shr eax, 0x1b
movzx eax, byte [eax + 0x424360]
cmp edx, eax
mov byte [esp + 0x38], 0
setbe cl
mov byte [esp + 0x2c], cl
mov eax, ecx
test al, al
jne 0x40d268
jmp 0x40d629
mov eax, ecx
lea ecx, [ecx - 1]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], eax
jmp 0x40cec1
mov eax, dword [esp + 0x18]
lea ebx, [eax + esi]
sub eax, 2
mov dword [esp + 0x28], ebx
mov dword [esp + 0x14], eax
test eax, eax
jle 0x40da31
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
jmp 0x40cecb
cmp ebp, edi
je 0x40d9a0
cmp byte [esp + 0x18], 4
jbe 0x40ce32
jmp 0x40d3c0
mov eax, dword [esp + 0x18]
lea esi, [eax + 1]
sub eax, 2
mov dword [esp + 0x28], esi
mov dword [esp + 0x14], eax
test eax, eax
jle 0x40db26
mov esi, 1
jmp 0x40d81a
mov ecx, 2
mov dword [esp + 0x2c], 0
mov esi, 1
jmp 0x40ce86
mov ebx, eax
mov ecx, 1
xor esi, esi
jmp 0x40cf31
mov dword [esp + 0x3c], 0
jmp 0x40ce32
mov eax, dword [esp + 0x58]
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x70], edi
sub eax, 1
imul edx, eax, 0x12934f
mov ecx, dword [eax*8 + 0x4240e0]
mov dword [esp + 0x6c], ecx
shr edx, 0x13
lea esi, [esi + edx + 0x3a]
mov edx, dword [esp + 0x64]
mov dword [esp + 0x18], esi
mov esi, dword [eax*8 + 0x4240e4]
mov eax, ecx
imul edx, ecx
mov edi, edx
mul dword [esp + 0x60]
mov dword [esp + 0x48], edi
add edx, edi
mov edi, 0x40
mov eax, edx
xor edx, edx
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x64]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x60]
imul edx, esi
mov ecx, edx
mul esi
add edx, ecx
add eax, dword [esp + 0x50]
adc edx, dword [esp + 0x54]
sub edi, dword [esp + 0x18]
mov eax, edx
xor edx, edx
mov ecx, edi
xor edi, edi
shld edx, eax, cl
shl eax, cl
test cl, 0x20
mov ecx, dword [esp + 0x48]
cmovne edx, eax
cmovne eax, edi
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x54], edx
imul esi, eax
mul dword [esp + 0x6c]
add ecx, esi
mov edi, edx
add edi, ecx
movzx ecx, byte [esp + 0x18]
mov edx, edi
shrd eax, edi, cl
shr edx, cl
test cl, 0x20
mov edi, dword [esp + 0x70]
cmovne eax, edx
add eax, dword [esp + 0x50]
mov ecx, eax
mul ebx
mov ebx, ecx
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ebx, eax
mov byte [esp + 0x18], bl
jmp 0x40d61e
test byte [esp + 0x38], 1
je 0x40d3c0
mov eax, dword [esp + 0x68]
test eax, eax
je 0x40d838
jmp 0x40d3c0
mov ebx, dword [esp + 0x40]
mov edx, 0xcccccccd
sub ebx, 1
mov eax, ebx
mul edx
mov ebx, edx
shr ebx, 3
cmp ebx, edi
jbe 0x40db53
mov byte [esp + 0x2c], 1
mov byte [esp + 0x38], 0
jmp 0x40d280
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x30]
mov ebx, 0xcccccccd
mul esi
mov esi, edx
shr esi, 2
lea eax, [esi + esi*4]
sub ecx, eax
jne 0x40db6d
lea esi, [esi]
nop
mov eax, esi
add ecx, 1
mul ebx
shr edx, 2
lea eax, [edx + edx*4]
sub esi, eax
mov esi, edx
je 0x40da10
cmp ecx, dword [esp + 0x58]
adc dword [esp + 0x40], 0xffffffff
jmp 0x40d629
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], 0
mov dword [esp + 0x20], eax
jmp 0x40cf15
mov eax, 1
sub eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x6c]
imul edx, eax, 0x12934f
add esi, 0x3c
mov dword [esp + 0x48], esi
shr edx, 0x13
lea ecx, [edx + 1]
sub esi, ecx
mov dword [esp + 0x30], esi
cmp eax, 0x2f
je 0x40cd69
mov edx, dword [eax*8 + 0x4241e0]
mov esi, dword [eax*8 + 0x4241e4]
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x38], edx
imul eax, edx
mov dword [esp + 0x18], eax
mov eax, edx
mul dword [esp + 0x78]
add edx, dword [esp + 0x18]
mov eax, edx
xor edx, edx
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x78]
imul edx, esi
mov dword [esp + 0x6c], edx
mul esi
add edx, dword [esp + 0x6c]
add eax, dword [esp + 0x58]
adc edx, dword [esp + 0x5c]
sub ecx, dword [esp + 0x48]
mov eax, edx
xor edx, edx
add ecx, 0x40
shld edx, eax, cl
shl eax, cl
test cl, 0x20
je 0x40dade
mov edx, eax
xor eax, eax
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x4c], edx
imul esi, eax
mul dword [esp + 0x38]
add ecx, esi
add edx, ecx
movzx ecx, byte [esp + 0x30]
shrd eax, edx, cl
shr edx, cl
test cl, 0x20
cmovne eax, edx
add eax, dword [esp + 0x48]
mov ecx, eax
mul ebx
mov ebx, ecx
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ebx, eax
mov byte [esp + 0x18], bl
jmp 0x40d77b
mov ebx, esi
mov ecx, 2
mov esi, 1
jmp 0x40cf31
mov ebx, ebp
mov edi, dword [esp + 0x20]
jmp 0x40d68b
mov edi, dword [esp + 0x20]
mov dword [esp + 0x30], 0
jmp 0x40d303
mov edi, dword [esp + 0x20]
mov ecx, 1
mov byte [esp + 0x38], 0
jmp 0x40d380
xor ebx, ebx
jmp 0x40d713
xor ecx, ecx
jmp 0x40da23
call sym._tos.part.50
lea esi, [esi]