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

Disassembly:
sub esp, 0x68
push esi
push edi
mov edi, dword [esp + 0x78]
mov al, byte [edi]
mov byte [esp + 0x6f], al
movzx eax, al
movzx eax, byte [eax + 0x571710]
add eax, 0xffffffd5
cmp eax, 0x4c
ja case.0x4be6ac.44
movzx eax, byte [eax + 0x4bfb88]
jmp dword [eax*4 + 0x4bfb68]
push str.auto
push edi
call fcn.004f93b0
add esp, 8
test eax, eax
jne case.0x4be6ac.44
cmp dword [esp + 0x84], 1
jg 0x4be804
mov esi, dword [esp + 0x80]
cmp byte [esi + 0x29], al
je 0x4be73e
cmp byte [esi + 0x28], al
jne 0x4be73e
movsd xmm1, qword [esi + 0x20]
comisd xmm1, xmmword [0x579980]
jb 0x4be742
movsd xmm0, qword [0x5798e0]
comisd xmm0, xmm1
jb 0x4be742
mulsd xmm1, qword [0x5699a8]
mov dword [esi + 0x28], 1
mov byte [esi + 0x2c], al
addsd xmm1, qword [0x5798e8]
addsd xmm1, qword [0x585af0]
movaps xmm0, xmm1
call fcn.0052e800
mov dword [esi], eax
xor ecx, ecx
pop edi
mov dword [esi + 4], edx
mov eax, ecx
pop esi
add esp, 0x68
ret
mov byte [esi + 0x29], 0
xor ecx, ecx
pop edi
mov eax, ecx
pop esi
add esp, 0x68
ret
push str.julianday
push edi
call fcn.004f93b0
add esp, 8
test eax, eax
jne case.0x4be6ac.44
cmp dword [esp + 0x84], 1
jg 0x4be804
mov eax, dword [esp + 0x80]
cmp byte [eax + 0x28], 0
je case.0x4be6ac.44
cmp byte [eax + 0x29], 0
je case.0x4be6ac.44
xor ecx, ecx
pop edi
mov byte [eax + 0x29], cl
mov eax, ecx
pop esi
add esp, 0x68
ret
push str.localtime
push edi
call fcn.004f93b0
add esp, 8
test eax, eax
jne case.0x4be6ac.44
mov esi, dword [esp + 0x74]
push esi
call fcn.004e9040
add esp, 4
test eax, eax
je case.0x4be6ac.44
mov eax, dword [esp + 0x80]
push esi
push eax
call fcn.005166c0
add esp, 8
mov ecx, eax
pop edi
pop esi
add esp, 0x68
ret
push str.unixepoch
push edi
call fcn.004f93b0
mov esi, dword [esp + 0x88]
add esp, 8
test eax, eax
jne 0x4be86b
cmp byte [esi + 0x29], al
je 0x4be86b
cmp dword [esp + 0x84], 1
jle 0x4be80f
pop edi
mov eax, 1
pop esi
add esp, 0x68
ret
movsd xmm0, qword [esi + 0x20]
mulsd xmm0, qword [0x5699a8]
addsd xmm0, qword [0x5798e8]
comisd xmm0, xmmword [0x579800]
jb case.0x4be6ac.44
movsd xmm1, qword [0x5798f0]
comisd xmm1, xmm0
jbe case.0x4be6ac.44
addsd xmm0, qword [0x585af0]
mov dword [esi + 0x28], 1
mov byte [esi + 0x2c], 0
call fcn.0052e800
mov dword [esi], eax
xor ecx, ecx
pop edi
mov dword [esi + 4], edx
mov eax, ecx
pop esi
add esp, 0x68
ret
push 0x574c40
push edi
call fcn.004f93b0
add esp, 8
test eax, eax
jne case.0x4be6ac.44
push dword [esp + 0x74]
call fcn.004e9040
add esp, 4
test eax, eax
je case.0x4be6ac.44
cmp byte [esi + 0x2d], 0
jne 0x4bec67
cmp byte [esi + 0x28], 0
mov dword [esp + 0x50], 0
jne 0x4be8e7
cmp byte [esi + 0x2a], 0
je 0x4be9ab
mov eax, dword [esi + 8]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x78], edx
cmp eax, 0xffffed97
jl 0x4be8d6
cmp eax, 0x270f
jle 0x4be9b9
push 0x30
push 0
push esi
call fcn.005326d0
add esp, 0xc
mov byte [esi + 0x2e], 1
mov eax, dword [esi]
xorps xmm0, xmm0
mov ecx, dword [esi + 4]
mov edi, eax
movlpd qword [esp + 0x38], xmm0
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x78], eax
nop
push 0x30
lea eax, [esp + 0xc]
push 0
push eax
call fcn.005326d0
sub edi, dword [esp + 0x84]
mov eax, dword [esp + 0x6c]
push dword [esp + 0x80]
sbb eax, esi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], edi
mov byte [esp + 0x44], 1
call fcn.005166c0
add esp, 0x14
test eax, eax
jne 0x4bf2d0
cmp byte [esp + 0x30], al
jne 0x4be99e
cmp byte [esp + 0x32], al
je 0x4beaf3
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x78], edx
lea eax, [ecx + 0x1269]
cmp eax, 0x3978
jbe 0x4beb01
push 0x30
lea eax, [esp + 0xc]
push 0
push eax
call fcn.005326d0
add esp, 0xc
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 8]
jmp 0x4bec1c
mov ecx, 1
mov eax, 0x7d0
mov dword [esp + 0x78], ecx
cmp byte [esi + 0x29], 0
jne 0x4be8d6
lea edi, [eax - 1]
cmp ecx, 2
cmovg edi, eax
mov eax, 0x51eb851f
imul edi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, 2
mov dword [esp + 0x54], eax
lea eax, [ecx + 0xc]
cmovg eax, ecx
inc eax
imul ecx, eax, 0x4ab51
mov eax, 0x68db8bad
imul ecx
lea eax, [edi + 0x126c]
imul ecx, eax, 0x8ead
mov eax, 0x51eb851f
sar edx, 0xc
mov esi, edx
shr esi, 0x1f
add esi, edx
imul ecx
mov eax, dword [esp + 0x54]
sar edx, 5
mov ecx, edx
add esi, edx
cdq
shr ecx, 0x1f
and edx, 3
add eax, edx
add ecx, esi
sar eax, 2
add ecx, eax
mov eax, dword [esp + 0x78]
sub ecx, dword [esp + 0x54]
add eax, 2
add eax, ecx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
subsd xmm0, qword [0x579890]
mulsd xmm0, qword [0x5798b8]
call fcn.0052e800
mov esi, dword [esp + 0x80]
mov ecx, edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ecx
cmp byte [esi + 0x2b], 0
mov dword [esi], eax
mov dword [esi + 4], ecx
mov byte [esi + 0x28], 1
je 0x4be8e7
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
movsd xmm0, qword [esi + 0x20]
mulsd xmm0, qword [0x5699a8]
shl ecx, 4
sub ecx, dword [esi + 0x14]
addsd xmm0, qword [0x585af0]
lea eax, [eax + ecx*4]
imul eax, eax, 0xea60
cdq
mov edi, eax
mov dword [esp + 0x78], edx
call fcn.0052e800
mov ecx, dword [esp + 0x78]
add edi, eax
adc ecx, edx
add edi, dword [esp + 0x54]
mov dword [esi], edi
adc ecx, dword [esp + 0x58]
cmp byte [esi + 0x2c], 0
mov dword [esi + 4], ecx
je 0x4be8e7
imul eax, dword [esi + 0x1c], 0xea60
mov word [esi + 0x2a], 0
mov byte [esi + 0x2c], 0
cdq
sub edi, eax
mov dword [esi], edi
sbb ecx, edx
mov dword [esi + 4], ecx
jmp 0x4be8e7
mov esi, 1
mov ecx, 0x7d0
mov dword [esp + 0x78], esi
cmp byte [esp + 0x31], 0
jne 0x4be98d
lea edi, [ecx - 1]
cmp esi, 2
mov eax, 0x51eb851f
cmovg edi, ecx
imul edi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, 2
mov dword [esp + 0x54], eax
lea eax, [esi + 0xc]
cmovg eax, esi
inc eax
imul ecx, eax, 0x4ab51
mov eax, 0x68db8bad
imul ecx
lea eax, [edi + 0x126c]
imul ecx, eax, 0x8ead
mov eax, 0x51eb851f
sar edx, 0xc
mov esi, edx
shr esi, 0x1f
add esi, edx
imul ecx
mov eax, dword [esp + 0x54]
sar edx, 5
mov ecx, edx
add esi, edx
cdq
shr ecx, 0x1f
and edx, 3
add eax, edx
add ecx, esi
sar eax, 2
add ecx, eax
mov eax, dword [esp + 0x78]
sub ecx, dword [esp + 0x54]
add eax, 2
add eax, ecx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
subsd xmm0, qword [0x579890]
mulsd xmm0, qword [0x5798b8]
call fcn.0052e800
cmp byte [esp + 0x33], 0
mov ecx, eax
mov esi, edx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x54], esi
je 0x4bec18
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
movsd xmm0, qword [esp + 0x28]
mulsd xmm0, qword [0x5699a8]
shl esi, 4
sub esi, dword [esp + 0x1c]
addsd xmm0, qword [0x585af0]
lea eax, [eax + esi*4]
imul eax, eax, 0xea60
cdq
mov esi, eax
mov edi, edx
call fcn.0052e800
add esi, eax
adc edi, edx
add esi, dword [esp + 0x78]
mov ecx, esi
adc edi, dword [esp + 0x54]
cmp byte [esp + 0x34], 0
mov esi, edi
mov edi, dword [esp + 0x5c]
je 0x4bec1c
imul eax, dword [esp + 0x24], 0xea60
cdq
sub ecx, eax
sbb esi, edx
jmp 0x4bec1c
mov edi, dword [esp + 0x5c]
sub ecx, dword [esp + 0x58]
mov eax, ecx
mov dword [esp + 0x78], ecx
sbb esi, dword [esp + 0x64]
or eax, esi
je 0x4bec42
mov ecx, dword [esp + 0x50]
mov eax, ecx
inc ecx
mov dword [esp + 0x50], ecx
cmp eax, 3
jl 0x4be910
mov esi, dword [esp + 0x80]
push 0x30
push 0
push esi
call fcn.005326d0
mov eax, dword [esp + 0x6c]
add esp, 0xc
mov dword [esi], edi
mov dword [esi + 4], eax
mov byte [esi + 0x28], 1
mov byte [esi + 0x2d], 1
xor ecx, ecx
pop edi
mov eax, ecx
pop esi
add esp, 0x68
ret
mov ecx, str.weekday
mov edx, 8
mov esi, edi
mov dword [esp + 0x78], ecx
mov al, byte [esi]
dec edx
test al, al
je 0x4becab
movzx ecx, byte [ecx]
movzx eax, al
mov al, byte [eax + 0x571710]
cmp al, byte [ecx + 0x571710]
jne 0x4becab
mov ecx, dword [esp + 0x78]
inc esi
inc ecx
mov dword [esp + 0x78], ecx
test edx, edx
jg 0x4bec81
dec edx
test edx, edx
js 0x4beccf
movzx eax, byte [esi]
movzx ecx, byte [eax + 0x571710]
mov eax, dword [esp + 0x78]
movzx eax, byte [eax]
movzx eax, byte [eax + 0x571710]
sub ecx, eax
jne case.0x4be6ac.44
add edi, 8
jne 0x4becd8
xor ecx, ecx
jmp 0x4becef
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4bece0
sub ecx, edx
and ecx, 0x3fffffff
push 1
push ecx
lea eax, [esp + 0x40]
push eax
push edi
call fcn.004cb350
add esp, 0x10
test eax, eax
jle case.0x4be6ac.44
movsd xmm1, qword [esp + 0x38]
comisd xmm1, xmmword [0x579800]
jb case.0x4be6ac.44
movsd xmm0, qword [0x579858]
comisd xmm0, xmm1
jbe case.0x4be6ac.44
cvttsd2si eax, xmm1
mov dword [esp + 0x50], eax
movd xmm0, eax
cvtdq2pd xmm0, xmm0
ucomisd xmm0, xmm1
lahf
test ah, 0x44
jp case.0x4be6ac.44
mov edi, dword [esp + 0x80]
push edi
call fcn.004a2770
push edi
call fcn.004a22c0
add esp, 8
mov byte [edi + 0x2c], 0
cmp byte [edi + 0x2a], 0
mov byte [edi + 0x28], 0
je 0x4bee2d
mov eax, dword [edi + 8]
mov edx, dword [edi + 0x10]
mov ecx, dword [edi + 0xc]
mov dword [esp + 0x78], edx
cmp eax, 0xffffed97
jl 0x4bed93
cmp eax, 0x270f
jle 0x4bee3b
push 0x30
push 0
push edi
call fcn.005326d0
add esp, 0xc
mov byte [edi + 0x2e], 1
lea eax, [edi + 0x2b]
mov dword [esp + 0x78], eax
mov ecx, dword [edi]
mov eax, dword [edi + 4]
add ecx, 0x7b98a00
push 0
push 0x5265c00
adc eax, 0
push eax
push ecx
call fcn.0052e950
push 0
push 7
push edx
push eax
call fcn.0052ebc0
mov ecx, eax
mov esi, edx
mov eax, dword [esp + 0x50]
cdq
cmp esi, edx
jl 0x4bedeb
jg 0x4bede5
cmp ecx, eax
jbe 0x4bedeb
add ecx, 0xfffffff9
adc esi, 0xffffffff
push 0
push 0x5265c00
push esi
push ecx
call fcn.0052ea00
mov ecx, eax
mov byte [edi + 0x2a], 0
mov eax, dword [esp + 0x50]
mov esi, edx
mov edx, 0x5265c00
mov byte [edi + 0x2c], 0
imul edx
sub eax, ecx
sbb edx, esi
add dword [edi], eax
mov eax, dword [esp + 0x78]
adc edx, dword [edi + 4]
xor ecx, ecx
mov dword [edi + 4], edx
pop edi
mov byte [eax], 0
mov eax, ecx
pop esi
add esp, 0x68
ret
mov ecx, 1
mov eax, 0x7d0
mov dword [esp + 0x78], ecx
cmp byte [edi + 0x29], 0
jne 0x4bed93
lea edi, [eax - 1]
cmp ecx, 2
cmovg edi, eax
mov eax, 0x51eb851f
imul edi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, 2
mov dword [esp + 0x54], eax
lea eax, [ecx + 0xc]
cmovg eax, ecx
inc eax
imul ecx, eax, 0x4ab51
mov eax, 0x68db8bad
imul ecx
lea ecx, [edi + 0x126c]
mov eax, 0x51eb851f
sar edx, 0xc
imul ecx, ecx, 0x8ead
mov esi, edx
shr esi, 0x1f
add esi, edx
imul ecx
mov eax, dword [esp + 0x54]
sar edx, 5
mov ecx, edx
add esi, edx
cdq
shr ecx, 0x1f
and edx, 3
add eax, edx
add ecx, esi
sar eax, 2
add ecx, eax
mov eax, dword [esp + 0x78]
sub ecx, dword [esp + 0x54]
add eax, 2
add eax, ecx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
subsd xmm0, qword [0x579890]
mulsd xmm0, qword [0x5798b8]
call fcn.0052e800
mov edi, dword [esp + 0x80]
mov ecx, edx
cmp byte [edi + 0x2b], 0
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ecx
mov dword [edi], eax
lea eax, [edi + 0x2b]
mov dword [edi + 4], ecx
mov byte [edi + 0x28], 1
mov dword [esp + 0x78], eax
je 0x4bedab
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
shl ecx, 4
sub ecx, dword [edi + 0x14]
lea eax, [eax + ecx*4]
imul eax, eax, 0xea60
cdq
mov esi, eax
mov edi, edx
mov eax, dword [esp + 0x80]
movsd xmm0, qword [eax + 0x20]
mulsd xmm0, qword [0x5699a8]
addsd xmm0, qword [0x585af0]
call fcn.0052e800
add esi, eax
mov eax, dword [esp + 0x80]
adc edi, edx
add esi, dword [esp + 0x54]
adc edi, dword [esp + 0x58]
mov dword [eax + 4], edi
mov edi, dword [esp + 0x80]
mov dword [eax], esi
mov eax, dword [esp + 0x78]
jmp 0x4beda7
mov eax, str.start_of
mov edx, 9
mov esi, edi
mov dword [esp + 0x5c], eax
nop word [eax + eax]
mov cl, byte [esi]
dec edx
mov byte [esp + 0x7b], cl
test cl, cl
je 0x4befb0
movzx ecx, byte [eax]
movzx eax, byte [esp + 0x7b]
mov al, byte [eax + 0x571710]
cmp al, byte [ecx + 0x571710]
mov eax, dword [esp + 0x5c]
jne 0x4befb0
inc eax
inc esi
mov dword [esp + 0x5c], eax
test edx, edx
jg 0x4bef80
dec edx
test edx, edx
js 0x4bf009
movzx eax, byte [eax]
movzx ecx, byte [eax + 0x571710]
movzx eax, byte [esi]
movzx eax, byte [eax + 0x571710]
sub eax, ecx
je 0x4bf009
push str.subsec
push edi
call fcn.004f93b0
add esp, 8
test eax, eax
je 0x4beff4
push str.subsecond
push edi
call fcn.004f93b0
add esp, 8
test eax, eax
jne case.0x4be6ac.44
mov eax, dword [esp + 0x80]
xor ecx, ecx
pop edi
pop esi
mov byte [eax + 0x2f], 1
mov eax, ecx
add esp, 0x68
ret
mov esi, dword [esp + 0x80]
mov al, byte [esi + 0x28]
test al, al
jne 0x4bf025
cmp byte [esi + 0x2a], al
jne 0x4bf025
cmp byte [esi + 0x2b], al
je case.0x4be6ac.44
add edi, 9
cmp byte [esi + 0x2a], 0
mov dword [esp + 0x78], edi
jne 0x4bf17e
test al, al
jne 0x4bf059
mov eax, 0x7d0
mov dword [esi + 0xc], 1
mov dword [esi + 0x10], 1
mov dword [esi + 8], eax
mov byte [esi + 0x2a], 1
jmp 0x4bf17e
mov ecx, dword [esi + 4]
mov eax, dword [esi]
cmp ecx, 0x1a640
ja 0x4bf16d
jb 0x4bf077
cmp eax, 0x1072fdff
ja 0x4bf16d
add eax, 0x2932e00
push 0
push 0x5265c00
adc ecx, 0
push ecx
push eax
call fcn.0052e950
mov esi, eax
movd xmm0, esi
cvtdq2pd xmm0, xmm0
subsd xmm0, qword [0x5798a0]
divsd xmm0, qword [0x579898]
cvttsd2si ecx, xmm0
mov eax, ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
sub ecx, eax
add ecx, 0x5f5
add esi, ecx
movd xmm0, esi
cvtdq2pd xmm0, xmm0
subsd xmm0, qword [0x579880]
divsd xmm0, qword [0x579888]
cvttsd2si edi, xmm0
mov eax, edi
and eax, 0x7fff
imul ecx, eax, 0x8ead
mov eax, 0x51eb851f
imul ecx
mov eax, esi
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub eax, ecx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x579868]
cvttsd2si edx, xmm0
movd xmm0, edx
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x579868]
cvttsd2si eax, xmm0
sub esi, eax
mov eax, dword [esp + 0x80]
sub esi, ecx
cmp edx, 0xe
mov ecx, 0xd
mov dword [eax + 0x10], esi
mov eax, 1
mov esi, dword [esp + 0x80]
cmovge eax, ecx
sub edx, eax
xor eax, eax
cmp edx, 2
setle al
mov dword [esi + 0xc], edx
add edi, 0xffffed94
add eax, edi
mov edi, dword [esp + 0x78]
mov dword [esi + 8], eax
mov byte [esi + 0x2a], 1
jmp 0x4bf17e
push 0x30
push 0
push esi
call fcn.005326d0
add esp, 0xc
mov byte [esi + 0x2e], 1
mov word [esi + 0x2b], 1
xorps xmm0, xmm0
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
movsd qword [esi + 0x20], xmm0
mov word [esi + 0x28], 0
test edi, edi
je case.0x4be6ac.44
push str.month
push edi
call fcn.004f93b0
add esp, 8
test eax, eax
je 0x4bf1d3
push str.year
push edi
call fcn.004f93b0
add esp, 8
test eax, eax
jne 0x4bf1e4
mov dword [esi + 0xc], 1
xor ecx, ecx
mov dword [esi + 0x10], 1
pop edi
mov eax, ecx
pop esi
add esp, 0x68
ret
push 0x574c6c
push edi
call fcn.004f93b0
add esp, 8
test eax, eax
jne case.0x4be6ac.44
xor ecx, ecx
pop edi
mov eax, ecx
pop esi
add esp, 0x68
ret
mov cl, byte [edi + 1]
lea edx, [edi + 1]
mov dword [esp + 0x5c], edi
mov esi, 1
mov dword [esp + 0x50], esi
test cl, cl
je 0x4bf274
nop dword [eax + eax]
cmp cl, 0x3a
je 0x4bf270
movzx eax, cl
test byte [eax + 0x571828], 1
jne 0x4bf270
cmp cl, 0x2d
jne 0x4bf267
cmp esi, 5
jne 0x4bf247
lea eax, [esp + 0x68]
push eax
push 0x574c70
jmp 0x4bf256
cmp esi, 6
jne 0x4bf267
lea eax, [esp + 0x68]
push eax
push 0x574c74
push edx
call fcn.004af760
add esp, 0xc
cmp eax, 1
je 0x4bf270
lea edx, [edi + 1]
mov cl, byte [edi + esi + 1]
inc esi
test cl, cl
jne 0x4bf220
mov dword [esp + 0x50], esi
push 1
push esi
lea eax, [esp + 0x40]
push eax
push edi
call fcn.004cb350
add esp, 0x10
test eax, eax
jle case.0x4be6ac.44
cmp byte [edi + esi], 0x2d
jne 0x4bf56f
mov al, byte [esp + 0x6f]
cmp al, 0x2b
je 0x4bf29f
cmp al, 0x2d
jne case.0x4be6ac.44
lea ecx, [esp + 0x64]
lea eax, [edi + 1]
push ecx
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0x70]
push ecx
cmp esi, 5
jne 0x4bf2d6
push str.40f_20a_20d
push eax
call fcn.004af760
add esp, 0x14
cmp eax, 3
je 0x4bf2ee
mov ecx, 1
mov eax, ecx
pop edi
pop esi
add esp, 0x68
ret
push str.50f_20a_20d
push eax
call fcn.004af760
add esp, 0x14
cmp eax, 3
jne case.0x4be6ac.44
inc edi
mov dword [esp + 0x78], edi
cmp dword [esp + 0x60], 0xc
jge case.0x4be6ac.44
cmp dword [esp + 0x64], 0x1f
jge case.0x4be6ac.44
mov esi, dword [esp + 0x80]
cmp byte [esi + 0x2a], 0
lea eax, [esi + 0x2a]
mov dword [esp + 0x5c], eax
jne 0x4bf466
cmp byte [esi + 0x28], 0
jne 0x4bf338
mov ecx, 0x7d0
mov dword [esi + 0xc], 1
mov dword [esi + 0x10], 1
mov dword [esi + 8], ecx
mov byte [eax], 1
jmp 0x4bf462
mov ecx, dword [esi + 4]
mov eax, dword [esi]
cmp ecx, 0x1a640
ja 0x4bf44e
jb 0x4bf356
cmp eax, 0x1072fdff
ja 0x4bf44e
add eax, 0x2932e00
push 0
push 0x5265c00
adc ecx, 0
push ecx
push eax
call fcn.0052e950
mov esi, eax
movd xmm0, esi
cvtdq2pd xmm0, xmm0
subsd xmm0, qword [0x5798a0]
divsd xmm0, qword [0x579898]
cvttsd2si ecx, xmm0
mov eax, ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
sub ecx, eax
add ecx, 0x5f5
add esi, ecx
movd xmm0, esi
cvtdq2pd xmm0, xmm0
subsd xmm0, qword [0x579880]
divsd xmm0, qword [0x579888]
cvttsd2si edi, xmm0
mov eax, edi
and eax, 0x7fff
imul ecx, eax, 0x8ead
mov eax, 0x51eb851f
imul ecx
mov eax, esi
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub eax, ecx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x579868]
cvttsd2si edx, xmm0
movd xmm0, edx
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x579868]
cvttsd2si eax, xmm0
sub esi, eax
mov eax, dword [esp + 0x80]
sub esi, ecx
cmp edx, 0xe
mov ecx, 0xd
mov dword [eax + 0x10], esi
mov eax, 1
mov esi, dword [esp + 0x80]
cmovge eax, ecx
sub edx, eax
xor ecx, ecx
cmp edx, 2
lea eax, [esi + 0x2a]
setle cl
mov dword [esi + 0xc], edx
add edi, 0xffffed94
add ecx, edi
mov edi, dword [esp + 0x78]
mov dword [esi + 8], ecx
mov byte [eax], 1
jmp 0x4bf462
push 0x30
push 0
push esi
call fcn.005326d0
add esp, 0xc
mov byte [esi + 0x2e], 1
lea eax, [esi + 0x2a]
mov dword [esp + 0x5c], eax
push esi
call fcn.004a22c0
mov edx, dword [esi + 8]
add esp, 4
cmp byte [esp + 0x6f], 0x2d
mov ecx, dword [esi + 0xc]
mov byte [esi + 0x28], 0
jne 0x4bf4a2
mov eax, dword [esp + 0x64]
sub ecx, dword [esp + 0x60]
neg eax
sub edx, dword [esp + 0x68]
mov dword [esp + 0x58], eax
mov dword [esp + 0x64], eax
lea eax, [esi + 0xc]
mov dword [esp + 0x78], eax
lea eax, [esi + 8]
jmp 0x4bf4c4
add ecx, dword [esp + 0x60]
lea eax, [esi + 0xc]
add edx, dword [esp + 0x68]
mov dword [esp + 0x78], eax
lea eax, [esi + 8]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x4c]
mov dword [eax], edx
mov eax, dword [esp + 0x78]
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], ecx
mov dword [eax], ecx
mov eax, 0x2aaaaaab
test ecx, ecx
jle 0x4bf4e0
dec ecx
jmp 0x4bf4e3
add ecx, 0xfffffff4
imul ecx
mov eax, dword [esp + 0x50]
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [esp + 0x54]
add eax, ecx
push esi
mov dword [esi + 8], eax
lea ecx, [ecx + ecx*2]
shl ecx, 2
sub edx, ecx
mov dword [esi + 0xc], edx
call fcn.004a2410
mov ecx, dword [esp + 0x60]
add esp, 4
mov eax, dword [esp + 0x58]
mov byte [esi + 0x2b], 0
mov byte [ecx], 0
mov ecx, 0x5265c00
imul ecx
add dword [esi], eax
adc dword [esi + 4], edx
mov al, byte [edi + 0xb]
test al, al
je 0x4be742
movzx eax, al
test byte [eax + 0x571828], 1
je case.0x4be6ac.44
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x44]
push ecx
lea eax, [edi + 0xc]
push str.20c:20e
push eax
mov dword [esp + 0x6c], eax
call fcn.004af760
add esp, 0x10
cmp eax, 2
jne case.0x4be6ac.44
jmp 0x4bf57a
mov esi, dword [esp + 0x80]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x5c]
cmp byte [ecx + eax], 0x3a
jne 0x4bf641
push 0x30
lea eax, [esp + 0xc]
push 0
push eax
call fcn.005326d0
mov ecx, dword [esp + 0x68]
lea eax, [esp + 0x14]
push eax
movzx eax, byte [ecx]
test byte [eax + 0x571828], 4
lea eax, [ecx + 1]
cmovne eax, ecx
push eax
call fcn.004be4c0
add esp, 0x14
test eax, eax
jne case.0x4be6ac.44
lea eax, [esp + 8]
push eax
call fcn.004a2410
mov eax, dword [esp + 0xc]
add esp, 4
mov edi, dword [esp + 0xc]
sub eax, 0x2932e00
mov dword [esp + 0x78], eax
sbb edi, 0
push 0
push 0x5265c00
push edi
push eax
call fcn.0052e950
push 0
push 0x5265c00
push edx
push eax
call fcn.0052ea00
mov ecx, dword [esp + 0x78]
sub ecx, eax
mov dword [esp + 0x78], ecx
sbb edi, edx
cmp byte [esp + 0x6f], 0x2d
jne 0x4bf61b
neg ecx
mov dword [esp + 0x78], ecx
adc edi, 0
neg edi
push esi
call fcn.004a2410
mov eax, dword [esp + 0x7c]
add esp, 4
add dword [esi], eax
mov word [esi + 0x2a], 0
adc dword [esi + 4], edi
xor ecx, ecx
pop edi
mov byte [esi + 0x2c], 0
mov eax, ecx
pop esi
add esp, 0x68
ret
add edi, eax
movzx eax, byte [edi]
test byte [eax + 0x571828], 1
je 0x4bf65e
nop
movzx eax, byte [edi + 1]
inc edi
test byte [eax + 0x571828], 1
jne 0x4bf650
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4bf663
sub ecx, edx
and ecx, 0x3fffffff
lea eax, [ecx - 3]
cmp eax, 7
ja case.0x4be6ac.44
movzx eax, byte [edi + ecx - 1]
lea edx, [ecx - 1]
push esi
cmp byte [eax + 0x571710], 0x73
cmovne edx, ecx
mov dword [esp + 0x7c], edx
call fcn.004a2410
movsd xmm1, qword [esp + 0x3c]
xorps xmm0, xmm0
add esp, 4
movsd qword [esp + 0x48], xmm1
comisd xmm0, xmm1
jbe 0x4bf6bc
movsd xmm0, qword [0x579978]
jmp 0x4bf6c4
movsd xmm0, qword [0x585af0]
movss xmm3, dword [0x5799f0]
xor eax, eax
mov edx, dword [esp + 0x78]
mov ecx, str.second
movsd qword [esp + 0x38], xmm0
mov dword [esp + 0x5c], eax
mov dword [esp + 0x50], ecx
nop word [eax + eax]
movzx eax, byte [ecx - 1]
cmp eax, edx
jne 0x4bf7a0
test ecx, ecx
jne 0x4bf708
mov eax, edi
neg eax
sbb eax, eax
jmp 0x4bf774
cmp dword [esp + 0x78], 0
mov eax, ecx
mov ecx, edi
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ecx
jle 0x4bf751
nop dword [eax + eax]
mov al, byte [eax]
dec edx
test al, al
je 0x4bf752
movzx ecx, byte [ecx]
movzx eax, al
mov al, byte [eax + 0x571710]
cmp al, byte [ecx + 0x571710]
mov ecx, dword [esp + 0x58]
jne 0x4bf752
mov eax, dword [esp + 0x54]
inc ecx
inc eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x54], eax
test edx, edx
jg 0x4bf720
dec edx
test edx, edx
js 0x4bf77a
movzx eax, byte [ecx]
movzx ecx, byte [eax + 0x571710]
mov eax, dword [esp + 0x54]
movzx eax, byte [eax]
movzx eax, byte [eax + 0x571710]
sub eax, ecx
mov ecx, dword [esp + 0x50]
test eax, eax
jne 0x4bf79c
jmp 0x4bf77e
mov ecx, dword [esp + 0x50]
movss xmm2, dword [ecx + 7]
movaps xmm0, xmm2
xorps xmm0, xmm3
cvtss2sd xmm0, xmm0
comisd xmm1, xmm0
jbe 0x4bf79c
cvtps2pd xmm0, xmm2
comisd xmm0, xmm1
ja 0x4bf7ce
mov edx, dword [esp + 0x78]
inc dword [esp + 0x5c]
add ecx, 0x10
mov dword [esp + 0x50], ecx
cmp ecx, 0x5725c9
jl 0x4bf6f0
mov ecx, 1
mov word [esi + 0x2a], 0
pop edi
mov byte [esi + 0x2c], 0
mov eax, ecx
pop esi
add esp, 0x68
ret
mov eax, dword [esp + 0x5c]
sub eax, 4
je 0x4bf963
sub eax, 1
jne 0x4bfb1a
cvttsd2si edi, xmm1
mov dword [esp + 0x78], edi
cmp byte [esi + 0x2a], al
jne 0x4bf94c
cmp byte [esi + 0x28], al
jne 0x4bf820
mov edx, 0x2a
mov dword [esi + 0xc], 1
mov ecx, esi
mov dword [esi + 0x10], 1
mov eax, 0x7d0
mov dword [esi + 8], eax
mov byte [edx + ecx], 1
jmp 0x4bf94c
mov ecx, dword [esi + 4]
mov eax, dword [esi]
cmp ecx, 0x1a640
ja 0x4bf93b
jb 0x4bf83e
cmp eax, 0x1072fdff
ja 0x4bf93b
add eax, 0x2932e00
push 0
push 0x5265c00
adc ecx, 0
push ecx
push eax
call fcn.0052e950
mov esi, eax
movd xmm0, esi
cvtdq2pd xmm0, xmm0
subsd xmm0, qword [0x5798a0]
divsd xmm0, qword [0x579898]
cvttsd2si ecx, xmm0
mov eax, ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
sub ecx, eax
add ecx, 0x5f5
add esi, ecx
movd xmm0, esi
cvtdq2pd xmm0, xmm0
subsd xmm0, qword [0x579880]
divsd xmm0, qword [0x579888]
cvttsd2si edi, xmm0
mov eax, edi
and eax, 0x7fff
imul ecx, eax, 0x8ead
mov eax, 0x51eb851f
imul ecx
mov eax, esi
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub eax, ecx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x579868]
cvttsd2si edx, xmm0
movd xmm0, edx
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x579868]
cvttsd2si eax, xmm0
sub esi, eax
mov eax, dword [esp + 0x80]
sub esi, ecx
cmp edx, 0xe
mov ecx, 0xd
mov dword [eax + 0x10], esi
mov eax, 1
mov esi, dword [esp + 0x80]
cmovge eax, ecx
sub edx, eax
mov ecx, esi
xor eax, eax
cmp edx, 2
mov dword [esi + 0xc], edx
setle al
add edi, 0xffffed94
mov edx, 0x2a
add eax, edi
mov edi, dword [esp + 0x78]
mov dword [esi + 8], eax
mov byte [edx + ecx], 1
jmp 0x4bf94c
push 0x30
push 0
push esi
call fcn.005326d0
add esp, 0xc
mov byte [esi + 0x2e], 1
push esi
call fcn.004a22c0
movsd xmm1, qword [esp + 0x4c]
add esp, 4
add dword [esi + 8], edi
jmp 0x4bfb00
cmp byte [esi + 0x2a], 0
jne 0x4bfac0
cmp byte [esi + 0x28], 0
jne 0x4bf999
mov edx, 0x2a
mov dword [esi + 0xc], 1
mov ecx, esi
mov dword [esi + 0x10], 1
mov eax, 0x7d0
mov dword [esi + 8], eax
mov byte [edx + ecx], 1
jmp 0x4bfac0
mov ecx, dword [esi + 4]
mov eax, dword [esi]
cmp ecx, 0x1a640
ja 0x4bfaaf
jb 0x4bf9b7
cmp eax, 0x1072fdff
ja 0x4bfaaf
add eax, 0x2932e00
push 0
push 0x5265c00
adc ecx, 0
push ecx
push eax
call fcn.0052e950
mov esi, eax
movd xmm0, esi
cvtdq2pd xmm0, xmm0
subsd xmm0, qword [0x5798a0]
divsd xmm0, qword [0x579898]
cvttsd2si ecx, xmm0
mov eax, ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
sub ecx, eax
add ecx, 0x5f5
add esi, ecx
movd xmm0, esi
cvtdq2pd xmm0, xmm0
subsd xmm0, qword [0x579880]
divsd xmm0, qword [0x579888]
cvttsd2si edi, xmm0
mov eax, edi
and eax, 0x7fff
imul ecx, eax, 0x8ead
mov eax, 0x51eb851f
imul ecx
mov eax, esi
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub eax, ecx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x579868]
cvttsd2si edx, xmm0
movd xmm0, edx
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x579868]
cvttsd2si eax, xmm0
sub esi, eax
mov eax, dword [esp + 0x80]
sub esi, ecx
cmp edx, 0xe
mov ecx, 0xd
mov dword [eax + 0x10], esi
mov eax, 1
mov esi, dword [esp + 0x80]
cmovge eax, ecx
sub edx, eax
mov ecx, esi
xor eax, eax
cmp edx, 2
setle al
mov dword [esi + 0xc], edx
add eax, 0xffffed94
mov edx, 0x2a
add eax, edi
mov dword [esi + 8], eax
mov byte [edx + ecx], 1
jmp 0x4bfac0
push 0x30
push 0
push esi
call fcn.005326d0
add esp, 0xc
mov byte [esi + 0x2e], 1
push esi
call fcn.004a22c0
movsd xmm1, qword [esp + 0x4c]
add esp, 4
mov edi, dword [esi + 0xc]
cvttsd2si eax, xmm1
add edi, eax
mov eax, 0x2aaaaaab
lea ecx, [edi - 1]
test edi, edi
jg 0x4bfae7
lea ecx, [edi - 0xc]
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
add dword [esi + 8], eax
lea eax, [eax + eax*2]
shl eax, 2
sub edi, eax
mov dword [esi + 0xc], edi
cvttsd2si eax, xmm1
mov byte [esi + 0x28], 0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
subsd xmm1, xmm0
movsd qword [esp + 0x48], xmm1
push esi
call fcn.004a2410
mov eax, dword [esp + 0x60]
add esp, 4
movsd xmm1, qword [esp + 0x48]
mulsd xmm1, qword [0x5699a8]
shl eax, 4
movss xmm0, dword [eax + 0x572574]
cvtps2pd xmm0, xmm0
mulsd xmm0, xmm1
addsd xmm0, qword [esp + 0x38]
call fcn.0052e800
add dword [esi], eax
pop edi
adc dword [esi + 4], edx
xor ecx, ecx
mov word [esi + 0x2a], cx
mov eax, ecx
mov byte [esi + 0x2c], cl
pop esi
add esp, 0x68
ret