Function at 0x406590
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3cc
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], ebx
mov edi, dword [eax + 4]
test edi, edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], eax
je 0x4083a1
xor eax, eax
mov ebx, 1
mov esi, dword [edi + 0x58]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov edx, dword [esi + 0xc]
cmp edx, 1
jle 0x406644
lea eax, [edx - 1]
mov dword [ebp - 4], eax
mov dword [esi + 0xc], eax
movzx eax, byte [esi + 0x4f]
test al, 0x10
je 0x40668a
test al, 0x20
je 0x40668a
mov ecx, dword [ebp + 0xc]
movsx ecx, byte [ecx]
cmp ecx, 2
je 0x407792
and eax, 0xffffffdf
cmp ecx, 1
je 0x407777
and eax, 0xffffffbf
push edi
mov byte [esi + 0x4f], al
mov dword [ebp - 0x38], edx
call fcn.0042eb40
mov edx, dword [ebp - 0x38]
add esp, 4
test eax, eax
jne 0x407706
movzx eax, byte [esi + 0x4f]
test al, 0x10
je 0x406636
test al, 0x20
jne 0x40836e
mov edx, dword [ebp - 4]
mov dword [esi + 0xc], edx
or eax, 0x20
mov byte [esi + 0x4f], al
jmp 0x40668a
mov eax, dword [ebp + 0xc]
movsx edx, byte [eax]
cmp edx, 2
je 0x40834f
movzx eax, byte [esi + 0x4f]
and eax, 0xffffffdf
cmp edx, 1
je 0x408334
and eax, 0xffffffbf
push edi
mov byte [esi + 0x4f], al
call fcn.0042eb40
add esp, 4
test eax, eax
jne 0x4082c3
movzx eax, byte [esi + 0x4f]
test al, 0x10
je 0x40668a
test al, 0x20
jne 0x4077ad
movsx edx, byte [esi + 0x48]
add edx, 0xfffffffe
cmp edx, 0x1a
ja case.0x40669a.3
jmp dword [edx*4 + 0x4c5940]
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x1c0], eax
mov eax, dword [edi + 0x3c]
mov ecx, dword [esi + 0x38]
mov dword [ebp - 0x1b4], ecx
mov edx, dword [edi + 0x44]
mov dword [ebp - 0x1bc], edx
add ecx, eax
cmp edx, ecx
jb 0x4077f3
cmp dword [ebp - 0x1b4], 0
jg 0x4077c7
mov edx, dword [edi + 0x4c]
cmp eax, edx
mov dword [edi + 0x128], 0
ja 0x4066e9
mov eax, edx
mov dword [edi + 0x4c], eax
or byte [edi + 0x171], 0x80
jmp 0x4065c9
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x406717
movzx eax, byte [edx + 0x1e]
test eax, eax
je 0x406717
mov byte [edx + 0x1e], 0
mov dword [ebp - 0x1b8], 1
jmp 0x406721
mov dword [ebp - 0x1b8], 0
movzx eax, byte [edi + 0x16d]
test al, 0x40
je 0x406739
cmp byte [edi + 0x156], 1
je 0x4078bb
push edi
call fcn.0042d130
add esp, 4
test eax, eax
jne 0x407996
add dword [edi + 0x98], 1
push 0
push edi
adc dword [edi + 0x9c], 0
and byte [edi + 0x16f], 0xfb
call fcn.0042e620
add esp, 8
test eax, eax
jne 0x407911
movsx eax, byte [edi + 0x154]
mov dword [ebp - 0x1c4], eax
lea eax, [eax - 1]
cmp eax, 7
ja case.default.0x40678b
jmp dword [eax*4 + 0x4c59c0]
mov ecx, dword [edi + 0x40]
test ecx, ecx
je 0x40679e
mov dword [edi + 0x3c], ecx
jmp 0x4067a4
mov ecx, dword [edi + 0x38]
mov dword [edi + 0x3c], ecx
mov eax, dword [edi + 0xf8]
movzx edx, byte [edi + 0x168]
lea eax, [ecx + eax - 1]
mov dword [edi + 0x44], eax
jmp 0x4068d1
mov eax, dword [edi + 0x18]
test eax, eax
je 0x4078f2
test byte [eax + 0x44], 2
je 0x4067fd
mov edx, 0x2c
mov dword [eax + 0x38], edx
mov eax, dword [edi + 0x18]
mov dword [eax + 0x3c], edx
mov edx, dword [edi + 0x64]
test edx, edx
je 0x4067eb
xor eax, eax
mov dword [edx + 4], eax
mov dword [edi + 0x64], eax
mov eax, 0x2c
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov eax, 0x2c
push eax
movzx edx, byte [edi + 0x16c]
push eax
and edx, 7
push edx
push 0xffffffffffffffff
push edi
call fcn.004299d0
add esp, 0x14
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 0x40]
test ecx, ecx
je 0x406833
add ecx, 4
jmp 0x406839
mov ecx, dword [edi + 0x38]
add ecx, 4
mov eax, dword [edi + 0xf8]
mov dword [edi + 0x3c], ecx
movzx edx, byte [edi + 0x168]
lea eax, [ecx + eax - 8]
mov dword [edi + 0x44], eax
jmp 0x4068d1
mov ecx, dword [edi + 0x40]
test ecx, ecx
je 0x40685e
mov dword [edi + 0x3c], ecx
jmp 0x406864
mov ecx, dword [edi + 0x38]
mov dword [edi + 0x3c], ecx
mov eax, dword [edi + 0xf8]
movzx edx, byte [edi + 0x168]
test dl, 4
mov dword [ebp - 0x1fc], eax
lea eax, [ecx + eax]
je 0x40689a
test byte [edi + 0x16a], 0x40
je 0x40689a
test byte [edi + 0x16b], 8
je 0x40689a
cmp dword [ebp - 0x1c4], 1
je 0x40689f
mov dword [edi + 0x44], eax
jmp 0x4068d1
mov eax, dword [ebp - 0x1fc]
lea eax, [ecx + eax - 2]
mov dword [edi + 0x44], eax
jmp 0x4068d1
push 0x468
push str.for_wseq_fmt.c
push 2
push 8
call fcn.00417f60
add esp, 0x10
movzx edx, byte [edi + 0x168]
mov ecx, dword [edi + 0x3c]
mov eax, dword [edi + 0x44]
test dl, 4
je 0x4068f1
test byte [edi + 0x16a], 0x40
je 0x4068f1
test byte [edi + 0x16b], 8
je 0x4068f1
cmp byte [edi + 0x154], 1
je 0x40693e
movsx edx, byte [edi + 0x156]
cmp edx, 2
jne 0x406919
movsx edx, byte [edi + 0x154]
cmp edx, 7
je 0x40693e
cmp edx, 6
je 0x40693e
cmp edx, 8
je 0x40693e
dec eax
mov dword [edi + 0x44], eax
jmp 0x40693e
cmp edx, 1
jne 0x40693e
movsx edx, byte [edi + 0x154]
cmp edx, 7
je 0x406938
cmp edx, 6
je 0x406938
cmp edx, 8
je 0x406938
dec eax
mov dword [edi + 0x44], eax
add ecx, 5
mov dword [edi + 0x3c], ecx
sub eax, ecx
push eax
push 0x20
push ecx
mov dword [edi + 0x48], ecx
mov dword [edi + 0x4c], ecx
call fcn.004aac50
add esp, 0xc
mov dword [edi + 0x128], 0
cmp dword [ebp - 0x1b8], 0
je 0x4065c9
mov eax, dword [edi + 0x7c]
mov byte [eax + 0x1e], 1
jmp 0x4065c9
cmp ebx, 2
jge 0x4065c9
jmp 0x407a07
test byte [edi + 0x168], 4
je 0x40699e
mov eax, dword [edi + 0x7c]
mov byte [eax + 0x1e], 1
mov edx, dword [edi + 0x7c]
mov dword [edx + 0xc], edi
jmp 0x4065c9
or byte [edi + 0x16d], 0x40
jmp 0x4065c9
mov edx, dword [ebp + 0xc]
movsx edx, byte [edx]
cmp edx, 1
je 0x407ea9
cmp edx, 2
je 0x407e8a
test byte [esi + 0x4e], 0x20
jne 0x406a6d
test byte [edi + 0x168], 2
je 0x406a03
test eax, 0x80
je 0x406a03
push ebx
lea eax, [ebp - 0x37c]
push eax
lea edx, [ebp - 0x1d4]
push edx
lea ecx, [ebp + 0x10]
push ecx
lea eax, [ebp + 0xc]
push eax
call fcn.0042eab0
add esp, 0x14
test eax, eax
jne 0x407d03
mov eax, dword [edi + 0x18]
test eax, eax
je 0x407ce4
test byte [eax + 0x44], 2
je 0x406a43
mov edx, 0x69
mov dword [eax + 0x38], edx
mov eax, dword [edi + 0x18]
mov dword [eax + 0x3c], edx
mov edx, dword [edi + 0x64]
test edx, edx
je 0x406a31
xor eax, eax
mov dword [edx + 4], eax
mov dword [edi + 0x64], eax
mov eax, 0x69
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov eax, 0x69
push eax
movzx edx, byte [edi + 0x16c]
push eax
and edx, 7
push edx
push 0xffffffffffffffff
push edi
call fcn.004299d0
add esp, 0x14
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x406a87
movzx eax, byte [edx + 0x1e]
test eax, eax
je 0x406a87
mov byte [edx + 0x1e], 0
mov edx, 1
jmp 0x406a89
xor edx, edx
cmp dword [edi + 0x128], 0
je 0x406ab7
movzx eax, byte [edi + 0x171]
test eax, 0x80
mov dword [edi + 0x128], 0
jne 0x406ab7
cmp dword [edi + 0x130], 0
jne 0x406d93
movzx eax, byte [edi + 0x16d]
test al, 0x40
mov dword [ebp - 0x1e0], eax
je 0x406ad5
cmp byte [edi + 0x156], 1
je 0x407d2c
push edi
mov dword [ebp - 0x1dc], edx
call fcn.0042d130
mov edx, dword [ebp - 0x1dc]
add esp, 4
test eax, eax
jne 0x407e19
add dword [edi + 0x98], 1
push 0
push edi
adc dword [edi + 0x9c], 0
and byte [edi + 0x16f], 0xfb
mov dword [ebp - 0x1dc], edx
call fcn.0042e620
mov edx, dword [ebp - 0x1dc]
add esp, 8
test eax, eax
jne 0x407d94
movsx eax, byte [edi + 0x154]
mov dword [ebp - 0x1e8], eax
lea eax, [eax - 1]
cmp eax, 7
ja case.default.0x406b3f
jmp dword [eax*4 + 0x4c59e0]
mov eax, dword [edi + 0x40]
test eax, eax
je 0x406b52
mov dword [edi + 0x3c], eax
jmp 0x406b58
mov eax, dword [edi + 0x38]
mov dword [edi + 0x3c], eax
mov ecx, dword [edi + 0xf8]
lea ecx, [eax + ecx - 1]
mov dword [ebp - 0x1f4], ecx
mov dword [edi + 0x44], ecx
movzx ecx, byte [edi + 0x168]
mov dword [ebp - 0x1f0], ecx
jmp 0x406ccf
mov eax, dword [edi + 0x18]
test eax, eax
je 0x407d75
test byte [eax + 0x44], 2
je 0x406bbd
mov edx, 0x2c
mov dword [eax + 0x38], edx
mov eax, dword [edi + 0x18]
mov dword [eax + 0x3c], edx
mov edx, dword [edi + 0x64]
test edx, edx
je 0x406bab
xor eax, eax
mov dword [edx + 4], eax
mov dword [edi + 0x64], eax
mov eax, 0x2c
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov eax, 0x2c
push eax
movzx edx, byte [edi + 0x16c]
push eax
and edx, 7
push edx
push 0xffffffffffffffff
push edi
call fcn.004299d0
add esp, 0x14
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x40]
test eax, eax
je 0x406bf3
add eax, 4
jmp 0x406bf9
mov eax, dword [edi + 0x38]
add eax, 4
mov ecx, dword [edi + 0xf8]
mov dword [edi + 0x3c], eax
lea ecx, [eax + ecx - 8]
mov dword [ebp - 0x1f4], ecx
mov dword [edi + 0x44], ecx
movzx ecx, byte [edi + 0x168]
mov dword [ebp - 0x1f0], ecx
jmp 0x406ccf
mov eax, dword [edi + 0x40]
test eax, eax
je 0x406c2d
mov dword [edi + 0x3c], eax
jmp 0x406c33
mov eax, dword [edi + 0x38]
mov dword [edi + 0x3c], eax
mov ecx, dword [edi + 0xf8]
mov dword [ebp - 0x3c8], ecx
add ecx, eax
mov dword [ebp - 0x1f4], ecx
movzx ecx, byte [edi + 0x168]
test cl, 4
mov dword [ebp - 0x1f0], ecx
je 0x406c74
test byte [edi + 0x16a], 0x40
je 0x406c74
test byte [edi + 0x16b], 8
je 0x406c74
cmp dword [ebp - 0x1e8], 1
je 0x406c7f
mov ecx, dword [ebp - 0x1f4]
mov dword [edi + 0x44], ecx
jmp 0x406ccf
mov ecx, dword [ebp - 0x3c8]
lea ecx, [eax + ecx - 2]
mov dword [ebp - 0x1f4], ecx
mov dword [edi + 0x44], ecx
jmp 0x406ccf
push 0x538
push str.for_wseq_fmt.c
push 2
push 8
mov dword [ebp - 0x1dc], edx
call fcn.00417f60
mov edx, dword [ebp - 0x1dc]
add esp, 0x10
movzx eax, byte [edi + 0x168]
mov ecx, dword [edi + 0x44]
mov dword [ebp - 0x1f0], eax
mov eax, dword [edi + 0x3c]
mov dword [ebp - 0x1f4], ecx
test byte [ebp - 0x1f0], 4
je 0x406cf3
test byte [edi + 0x16a], 0x40
je 0x406cf3
test byte [edi + 0x16b], 8
je 0x406cf3
cmp byte [edi + 0x154], 1
je 0x406d58
movsx ecx, byte [edi + 0x156]
cmp ecx, 2
jne 0x406d27
movsx ecx, byte [edi + 0x154]
cmp ecx, 7
je 0x406d58
cmp ecx, 6
je 0x406d58
cmp ecx, 8
je 0x406d58
mov ecx, dword [ebp - 0x1f4]
dec ecx
mov dword [ebp - 0x1f4], ecx
mov dword [edi + 0x44], ecx
jmp 0x406d58
cmp ecx, 1
jne 0x406d58
movsx ecx, byte [edi + 0x154]
cmp ecx, 7
je 0x406d52
cmp ecx, 6
je 0x406d52
cmp ecx, 8
je 0x406d52
mov ecx, dword [ebp - 0x1f4]
dec ecx
mov dword [ebp - 0x1f4], ecx
mov dword [edi + 0x44], ecx
add eax, 5
mov dword [edi + 0x3c], eax
mov ecx, dword [ebp - 0x1f4]
sub ecx, eax
push ecx
push 0x20
push eax
mov dword [edi + 0x48], eax
mov dword [edi + 0x4c], 0
mov dword [ebp - 0x1dc], edx
call fcn.004aac50
mov edx, dword [ebp - 0x1dc]
add esp, 0xc
mov dword [edi + 0x130], 1
and byte [edi + 0x171], 0x7f
test edx, edx
je 0x406d9e
mov eax, dword [edi + 0x7c]
mov byte [eax + 0x1e], 1
mov eax, dword [edi + 0x3c]
mov dword [edi + 0x4c], eax
jmp 0x4065c9
cmp ebx, 1
jle 0x406e85
mov eax, dword [ebp - 0x37c]
cmp eax, 7
je 0x406dc6
cmp eax, 8
jne 0x406e53
cmp dword [ebp - 0x20], 0
je 0x406de5
mov eax, dword [ebp - 0x1c8]
dec ebx
add dword [ebp - 0x1d4], eax
mov dword [ebp - 0x20], 0
jmp 0x407085
cmp dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x20]
je 0x406df3
mov eax, 1
xor ecx, ecx
mov edx, dword [ebp - 0x378]
test edx, edx
mov dword [ebp - 0x20], eax
jle 0x406e2d
mov dword [ebp - 0x1b0], edi
xor eax, eax
mov edi, dword [ebp + eax*4 - 0x1ac]
sub edi, dword [ebp + eax*4 - 0xb4]
imul edi, dword [ebp + eax*4 - 0x130]
inc eax
add ecx, edi
cmp eax, edx
jl 0x406e0a
mov edi, dword [ebp - 0x1b0]
add ecx, dword [ebp - 0x374]
lea eax, [ebp - 0x37c]
push eax
mov dword [ebp - 0x1d4], ecx
lea edx, [ebp - 0x1ac]
push edx
push 0
call fcn.0042f7c0
add esp, 0xc
jmp 0x406e6e
mov edx, dword [ebp - 0x20]
test edx, edx
mov eax, dword [ebp - 0x1c8]
je 0x406e65
mov edx, 0
add dword [ebp - 0x1d4], eax
mov dword [ebp - 0x20], edx
mov dword [edi + 0x128], 0
dec ebx
or byte [edi + 0x171], 0x80
jmp 0x407085
lea eax, [ebp - 0x37c]
push eax
lea edx, [ebp - 0x1d4]
push edx
lea ecx, [ebp + 0x10]
push ecx
lea ebx, [ebp + 0xc]
push ebx
call fcn.0042e810
add esp, 0x10
test eax, eax
jne 0x408252
mov ecx, dword [ebp - 0x1cc]
cmp ecx, 2
je 0x408380
cmp ecx, 1
je 0x407a16
mov eax, dword [ebp - 0x37c]
cmp eax, 7
jl 0x406ff1
cmp eax, 8
jg 0x406ff1
mov eax, dword [ebp - 0x1c8]
test eax, eax
mov dword [ebp - 0x1f8], eax
je 0x406efe
mov eax, dword [ebp - 0x1d0]
cdq
mov ebx, dword [ebp - 0x1f8]
idiv ebx
mov ebx, eax
jmp 0x406f11
test byte [edi + 0x168], 2
je 0x406fe3
mov ebx, dword [ebp - 0x1d0]
test ebx, ebx
je 0x406fe5
cmp ecx, 0x34
je 0x406f28
cmp ecx, 0x1c
jl 0x406f35
cmp ecx, 0x2c
jg 0x406f35
mov eax, 1
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
jmp 0x406f3c
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x378]
test eax, eax
jle 0x406f88
mov dword [ebp - 0x1b0], edi
xor ecx, ecx
lea edi, [ecx*8]
lea edi, [edi + ecx*4]
mov edx, dword [ebp + edi - 0x36c]
mov edi, dword [ebp + edi - 0x368]
mov dword [ebp + ecx*4 - 0xb4], edx
mov dword [ebp + ecx*4 - 0x130], edi
mov dword [ebp + ecx*4 - 0x1ac], edx
inc ecx
cmp ecx, eax
jl 0x406f4e
mov edi, dword [ebp - 0x1b0]
test eax, eax
mov ecx, 0
jle 0x406fba
mov dword [ebp - 0x1b0], edi
xor edx, edx
mov edi, dword [ebp + edx*4 - 0x1ac]
sub edi, dword [ebp + edx*4 - 0xb4]
imul edi, dword [ebp + edx*4 - 0x130]
inc edx
add ecx, edi
cmp edx, eax
jl 0x406f97
mov edi, dword [ebp - 0x1b0]
add ecx, dword [ebp - 0x374]
lea eax, [ebp - 0x37c]
push eax
mov dword [ebp - 0x1d4], ecx
lea edx, [ebp - 0x1ac]
push edx
push 0
call fcn.0042f7c0
add esp, 0xc
jmp 0x407074
xor ebx, ebx
mov dword [ebp - 0x18], 1
jmp 0x40708b
cmp eax, 6
je 0x406ffb
cmp eax, 5
jne 0x407052
movzx ecx, byte [edi + 0x168]
and ecx, 2
mov eax, dword [ebp - 0x1c8]
shr ecx, 1
mov ebx, dword [ebp - 0x1d0]
test eax, eax
mov dword [ebp - 0x1d8], eax
je 0x407030
mov eax, ebx
cdq
mov ebx, dword [ebp - 0x1d8]
idiv ebx
mov ebx, eax
test ecx, ecx
jne 0x40703b
jmp 0x407085
test ecx, ecx
jne 0x407039
mov ebx, 0
je 0x407085
test ebx, ebx
jne 0x407074
mov dword [edi + 0x128], 1
mov dword [ebp - 0x18], 1
jmp 0x40708b
cmp ecx, 0x34
je 0x407061
cmp ecx, 0x1c
jl 0x40706f
cmp ecx, 0x2c
jg 0x40706f
mov dword [ebp - 0x20], 1
mov ebx, 2
jmp 0x407074
mov ebx, 1
mov dword [edi + 0x128], 0
or byte [edi + 0x171], 0x80
cmp dword [ebp - 0x18], 0
je 0x4070a7
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x40709e
mov dword [esi + 0xc], 2
jmp 0x4065c9
inc eax
mov dword [esi + 0xc], eax
jmp 0x4065c9
mov eax, dword [esi]
and byte [esi + 0x4f], 0xf7
movsx ecx, byte [esi + 0x48]
movzx edx, byte [eax + 0x16e]
test edx, 0x80
je 0x4070e3
mov eax, dword [ecx*4 + 0x4cd480]
test eax, eax
je 0x4070e3
mov edx, dword [ebp - 0x1cc]
movsx eax, byte [eax + edx]
test eax, eax
je 0x4070e3
mov dword [ebp - 0x1cc], eax
movsx ecx, byte [esi + 0x48]
lea eax, [ecx - 0x13]
cmp eax, 0x20
ja case.default.0x4070ef
jmp dword [eax*4 + 0x4c5a00]
mov edx, dword [esi + 0x38]
test edx, edx
jne 0x407135
movzx eax, byte [esi + 0x50]
or eax, 2
mov byte [esi + 0x50], al
mov edx, dword [ebp - 0x1cc]
mov dword [ebp - 0x2c], eax
movsx edx, word [edx*2 + 0x4cd320]
cmp edx, 0xffffffff
mov dword [esi + 0x38], edx
je 0x407eb7
add ecx, 0xffffffd8
cmp ecx, 0x20
jb 0x40755c
jmp 0x40758b
add ecx, 0xffffffd8
cmp ecx, 0x20
jb 0x40755c
movzx eax, byte [esi + 0x50]
mov dword [ebp - 0x2c], eax
jmp 0x40758b
mov eax, dword [ebp - 0x1cc]
movsx edx, word [eax*2 + 0x4cd320]
cmp edx, 0xffffffff
mov dword [esi + 0x38], edx
je 0x407ede
add ecx, 0xffffffd8
cmp ecx, 0x20
jb 0x40755c
jmp 0x407141
mov edx, dword [esi + 0x38]
test edx, edx
jne 0x4071b3
movzx eax, byte [esi + 0x50]
or eax, 2
mov byte [esi + 0x50], al
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x1cc]
movsx edx, byte [eax + 0x4cd6ed]
cmp edx, 0xffffffff
mov dword [esi + 0x38], edx
je 0x407f05
add ecx, 0xffffffd8
cmp ecx, 0x20
jb 0x40755c
jmp 0x40758b
add ecx, 0xffffffd8
cmp ecx, 0x20
jb 0x40755c
jmp 0x407141
mov edx, dword [esi + 0x38]
test edx, edx
jne 0x4071f6
movzx eax, byte [esi + 0x50]
add ecx, 0xffffffd8
or eax, 2
mov byte [esi + 0x50], al
cmp ecx, 0x20
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x1cc]
movsx edx, byte [eax + 0x4cd6db]
mov dword [esi + 0x38], edx
jb 0x40755c
jmp 0x40758b
add ecx, 0xffffffd8
cmp ecx, 0x20
jb 0x40755c
jmp 0x407141
mov edx, dword [esi + 0x38]
test edx, edx
jne 0x40729b
or byte [esi + 0x51], 4
mov eax, dword [ebp - 0x1cc]
cmp eax, 0x19
mov dword [ebp - 0x3cc], eax
jge 0x407f2c
cmp dword [ebp - 0x3cc], 5
jl 0x40726b
cmp dword [ebp - 0x3cc], 0x11
jg 0x40726b
movzx eax, byte [esi + 0x50]
add ecx, 0xffffffd8
or eax, 2
mov byte [esi + 0x50], al
cmp ecx, 0x20
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x1cc]
movsx edx, byte [eax + 0x4cd6db]
mov dword [esi + 0x38], edx
jb 0x40755c
jmp 0x40758b
cmp dword [ebp - 0x3cc], 0x39
je 0x407281
cmp dword [ebp - 0x3cc], 0x38
jne 0x407496
add ecx, 0xffffffd8
mov edx, dword [ebp - 0x1c8]
cmp ecx, 0x20
mov dword [esi + 0x38], edx
jb 0x40755c
jmp 0x407141
add ecx, 0xffffffd8
cmp ecx, 0x20
jb 0x40755c
jmp 0x407141
mov edx, dword [esi + 0x38]
test edx, edx
jne 0x4072fe
or byte [esi + 0x51], 4
mov eax, dword [ebp - 0x1cc]
cmp eax, 5
jl 0x4072e3
cmp eax, 0x11
jg 0x4072e3
or byte [esi + 0x50], 2
mov eax, dword [ebp - 0x1cc]
movsx edx, byte [eax + 0x4cd6db]
mov dword [esi + 0x38], edx
mov eax, dword [ebp - 0x1cc]
jmp 0x407304
cmp eax, 0x39
je 0x4072ed
cmp eax, 0x38
jne 0x407304
mov edx, dword [ebp - 0x1c8]
mov dword [esi + 0x38], edx
mov eax, dword [ebp - 0x1cc]
jmp 0x407304
mov eax, dword [ebp - 0x1cc]
cmp eax, 0x19
jge case.0x4070ef.30
add ecx, 0xffffffd8
cmp ecx, 0x20
jb 0x40755c
jmp 0x407141
mov edx, dword [esi + 0x38]
test edx, edx
jne 0x407356
movzx eax, byte [esi + 0x50]
add ecx, 0xffffffd8
or eax, 2
mov byte [esi + 0x50], al
mov edx, dword [ebp - 0x1cc]
mov dword [ebp - 0x2c], eax
movsx eax, word [esi + 0x40]
movsx edx, word [edx*8 + 0x4cd2da]
add edx, eax
mov dword [esi + 0x38], edx
cmp ecx, 0x20
jb 0x40755c
jmp 0x40758b
add ecx, 0xffffffd8
cmp ecx, 0x20
jb 0x40755c
jmp 0x407141
add ecx, 0xffffffd8
cmp ecx, 0x20
jb 0x40755c
jmp 0x407581
mov eax, dword [ebp - 0x1cc]
movsx edx, byte [eax + 0x4cd6ed]
cmp edx, 0xffffffff
mov dword [esi + 0x38], edx
je 0x407f90
add ecx, 0xffffffd8
cmp ecx, 0x20
jb 0x40755c
jmp 0x407141
mov eax, dword [ebp - 0x1cc]
cmp eax, 5
jl 0x407496
cmp eax, 0x11
jg 0x407496
add ecx, 0xffffffd8
mov edx, 2
mov dword [esi + 0x38], 2
cmp ecx, 0x20
jb 0x40755c
jmp 0x407141
mov eax, dword [ebp - 0x1cc]
cmp eax, 5
jl 0x407496
cmp eax, 0x11
jg 0x407496
add ecx, 0xffffffd8
movsx edx, byte [eax + 0x4cd6db]
cmp ecx, 0x20
mov dword [esi + 0x38], edx
jb 0x40755c
jmp 0x407141
or byte [esi + 0x51], 4
mov eax, dword [ebp - 0x1cc]
cmp eax, 0x19
mov dword [ebp - 0x3c4], eax
jge 0x407fb7
cmp dword [ebp - 0x3c4], 5
jl 0x407450
cmp dword [ebp - 0x3c4], 0x11
jg 0x407450
add ecx, 0xffffffd8
cmp ecx, 0x20
movsx edx, byte [eax + 0x4cd6db]
mov dword [esi + 0x38], edx
jb 0x40755c
jmp 0x407141
cmp dword [ebp - 0x3c4], 0x39
je 0x407462
cmp dword [ebp - 0x3c4], 0x38
jne 0x407496
add ecx, 0xffffffd8
mov edx, dword [ebp - 0x1c8]
cmp ecx, 0x20
mov dword [esi + 0x38], edx
jb 0x40755c
jmp 0x407141
mov eax, dword [ebp - 0x1cc]
cmp eax, 0x19
mov dword [ebp - 0x1e4], eax
jl 0x407496
cmp dword [ebp - 0x1e4], 0x34
jle 0x407502
add ecx, 0xffffffd8
mov eax, 0x3d
cmp ecx, 0x20
jb 0x40755e
mov edx, dword [edi + 0x18]
test edx, edx
je 0x408004
test byte [edx + 0x44], 2
je 0x4074dd
mov dword [edx + 0x38], eax
mov edx, dword [edi + 0x18]
mov dword [edx + 0x3c], eax
mov ecx, dword [edi + 0x64]
test ecx, ecx
je 0x4074d0
xor edx, edx
mov dword [ecx + 4], edx
mov dword [edi + 0x64], edx
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push eax
movzx edx, byte [edi + 0x16c]
push eax
and edx, 7
push edx
push 0xffffffffffffffff
push edi
call fcn.004299d0
add esp, 0x14
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
add ecx, 0xffffffd8
cmp ecx, 0x20
movsx edx, word [eax*8 + 0x4cd2d8]
mov dword [ebp - 0x380], edx
mov dword [esi + 0x38], edx
movzx edx, word [eax*8 + 0x4cd2dc]
movzx eax, word [eax*8 + 0x4cd2de]
mov word [esi + 0x40], dx
mov word [esi + 0x42], ax
mov edx, dword [ebp - 0x380]
jb 0x40755c
jmp 0x407141
add ecx, 0xffffffd8
mov edx, dword [ebp - 0x1c8]
cmp ecx, 0x20
mov dword [esi + 0x38], edx
jb 0x40755c
jmp 0x407141
add ecx, 0xffffffd8
cmp ecx, 0x20
jae 0x407581
xor eax, eax
mov edx, 1
shl edx, cl
test dl, 0x25
je 0x407579
mov ecx, dword [esi + 0x40]
mov edx, dword [esi + 0x38]
cmp ecx, edx
jge 0x407576
mov ecx, edx
mov dword [esi + 0x38], ecx
test eax, eax
jne 0x4074a7
movzx eax, byte [esi + 0x50]
mov edx, dword [esi + 0x38]
mov dword [ebp - 0x2c], eax
test byte [ebp - 0x2c], 2
je 0x407647
test edx, edx
jle 0x4075a7
movsx eax, word [esi + 0x40]
cmp eax, edx
jle 0x4075a7
lea edx, [eax + 1]
mov dword [esi + 0x38], edx
cmp edx, 0x40
ja 0x4075be
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x3c0]
mov dword [ebp - 0x28], eax
jmp 0x4075db
lea eax, [ebp - 0x28]
push eax
push 0
push edx
call fcn.00411f20
add esp, 0xc
test eax, eax
jne 0x40808f
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
push dword [esi + 0x38]
push 0x20
push eax
call fcn.004aac50
push dword [ebp - 0x28]
push esi
lea eax, [ebp - 0x1d4]
push eax
call fcn.0042ffa0
add esp, 0x18
test eax, eax
je 0x407616
cmp eax, 0x3f
jne 0x40801e
test byte [edi + 0x16f], 8
jne 0x407616
mov dword [esi + 0x10], 0x3f
mov edx, dword [esi + 0x38]
test edx, edx
je 0x407632
mov eax, dword [ebp - 0x28]
cmp byte [eax], 0x20
jne 0x407647
inc eax
mov dword [ebp - 0x28], eax
mov edx, dword [esi + 0x38]
dec edx
mov dword [esi + 0x38], edx
jne 0x40761d
movsx eax, word [esi + 0x40]
test eax, eax
jne 0x407647
mov dword [esi + 0x38], 1
dec dword [ebp - 0x28]
mov edx, dword [esi + 0x38]
mov ecx, dword [edi + 0x3c]
mov dword [ebp - 0x30], ecx
mov eax, dword [edi + 0x44]
mov dword [ebp - 0x34], eax
add ecx, edx
cmp eax, ecx
jb 0x408198
movzx eax, byte [esi + 0x50]
test al, 2
je 0x4076d1
cmp dword [esi + 0x38], 0
je 0x4076ae
mov edx, dword [ebp - 0x28]
mov ecx, dword [edi + 0x3c]
movzx eax, byte [edx]
mov byte [ecx], al
inc dword [edi + 0x3c]
inc dword [ebp - 0x28]
mov eax, dword [esi + 0x38]
dec eax
je 0x408100
mov dword [esi + 0x38], eax
mov eax, dword [ebp - 0x28]
movsx eax, byte [eax]
cmp eax, 0x20
je 0x408100
mov edx, dword [edi + 0x3c]
mov byte [edx], al
inc dword [edi + 0x3c]
inc dword [ebp - 0x28]
mov eax, dword [esi + 0x38]
dec eax
jne 0x407686
jmp 0x408100
and eax, 0xfffffffd
mov byte [esi + 0x50], al
mov dword [esi + 0x38], 0
cmp dword [ebp - 0x24], 0
je 0x4076cc
push dword [ebp - 0x24]
call fcn.00411fe0
add esp, 4
mov edx, dword [edi + 0x3c]
jmp 0x4076f5
push dword [edi + 0x3c]
push esi
lea eax, [ebp - 0x1d4]
push eax
call fcn.0042ffa0
add esp, 0xc
test eax, eax
jne 0x408109
mov edx, dword [edi + 0x3c]
add edx, dword [esi + 0x38]
mov dword [edi + 0x3c], edx
mov eax, dword [edi + 0x4c]
cmp edx, eax
ja 0x4076fe
mov edx, eax
mov dword [edi + 0x4c], edx
jmp 0x4065c9
mov edx, dword [edi + 0x18]
test edx, edx
je 0x40775d
test byte [edx + 0x44], 2
je 0x407738
mov dword [edx + 0x38], eax
mov edx, dword [edi + 0x18]
mov dword [edx + 0x3c], eax
mov ecx, dword [edi + 0x64]
test ecx, ecx
je 0x40772b
xor edx, edx
mov dword [ecx + 4], edx
mov dword [edi + 0x64], edx
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push eax
movzx edx, byte [edi + 0x16c]
push eax
and edx, 7
push edx
push 0xffffffffffffffff
push edi
call fcn.004299d0
add esp, 0x14
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push edi
push eax
push eax
push 1
call fcn.00415e60
add esp, 0x10
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x20], 0
jne 0x406609
cmp ebx, 1
jg 0x406609
or eax, 0x40
jmp 0x40660c
cmp dword [ebp - 0x20], 0
jne 0x4065fd
cmp ebx, 1
jg 0x4065fd
or eax, 0x20
jmp 0x406609
mov eax, dword [esi + 0xc]
test eax, eax
jle 0x4077b8
inc eax
mov dword [esi + 0xc], eax
xor eax, eax
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x1ec], ebx
xor ecx, ecx
mov ebx, dword [ebp - 0x1c0]
movzx edx, byte [ecx + ebx]
inc ecx
mov byte [eax], dl
mov eax, dword [edi + 0x3c]
inc eax
mov dword [edi + 0x3c], eax
cmp ecx, dword [esi + 0x38]
jl 0x4077d5
mov ebx, dword [ebp - 0x1ec]
jmp 0x4066d6
mov edx, ecx
sub edx, dword [ebp - 0x1bc]
cmp edx, 0x200
mov eax, dword [edi + 0xf8]
jge 0x40780e
mov edx, 0x200
shr eax, 3
cmp edx, eax
jge 0x407817
mov edx, eax
push edx
push edi
call fcn.0042f5c0
add esp, 8
test eax, eax
jne 0x407836
mov edx, dword [esi + 0x38]
mov eax, dword [edi + 0x3c]
mov dword [ebp - 0x1b4], edx
jmp 0x4066c9
mov eax, dword [edi + 0x18]
test eax, eax
je 0x40789c
test byte [eax + 0x44], 2
je 0x407872
mov edx, 0x42
mov dword [eax + 0x38], edx
mov eax, dword [edi + 0x18]
mov dword [eax + 0x3c], edx
mov edx, dword [edi + 0x64]
test edx, edx
je 0x407860
xor eax, eax
mov dword [edx + 4], eax
mov dword [edi + 0x64], eax
mov eax, 0x42
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov eax, 0x42
push eax
movzx edx, byte [edi + 0x16c]
push eax
and edx, 7
push edx
push 0xffffffffffffffff
push edi
call fcn.004299d0
add esp, 0x14
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push edi
mov eax, 0x42
push eax
push eax
push 1
call fcn.00415e60
add esp, 0x10
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 0x38]
movsx edx, byte [ecx + 5]
cmp edx, 0x20
je 0x4078e5
cmp edx, 0x2b
jne 0x4078d7
mov byte [ecx + 5], 0
movzx eax, byte [edi + 0x16d]
and eax, 0xffffffbf
mov byte [edi + 0x16d], al
jmp 0x406739
mov byte [ecx + 5], 0x24
movzx eax, byte [edi + 0x16d]
jmp 0x4078d7
push edi
mov eax, 0x2c
push eax
push eax
push 1
call fcn.00415e60
add esp, 0x10
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x18]
test eax, eax
je 0x407977
test byte [eax + 0x44], 2
je 0x40794d
mov edx, 0x26
mov dword [eax + 0x38], edx
mov eax, dword [edi + 0x18]
mov dword [eax + 0x3c], edx
mov edx, dword [edi + 0x64]
test edx, edx
je 0x40793b
xor eax, eax
mov dword [edx + 4], eax
mov dword [edi + 0x64], eax
mov eax, 0x26
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov eax, 0x26
push eax
movzx edx, byte [edi + 0x16c]
push eax
and edx, 7
push edx
push 0xffffffffffffffff
push edi
call fcn.004299d0
add esp, 0x14
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push edi
mov eax, 0x26
push eax
push eax
push 1
call fcn.00415e60
add esp, 0x10
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x18]
test edx, edx
je 0x4079ed
test byte [edx + 0x44], 2
je 0x4079c8
mov dword [edx + 0x38], eax
mov edx, dword [edi + 0x18]
mov dword [edx + 0x3c], eax
mov ecx, dword [edi + 0x64]
test ecx, ecx
je 0x4079bb
xor edx, edx
mov dword [ecx + 4], edx
mov dword [edi + 0x64], edx
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push eax
movzx edx, byte [edi + 0x16c]
push eax
and edx, 7
push edx
push 0xffffffffffffffff
push edi
call fcn.004299d0
add esp, 0x14
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push edi
push eax
push eax
push 1
call fcn.00415e60
add esp, 0x10
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
movsx eax, byte [eax]
cmp eax, 1
jne 0x407c20
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x407a29
movzx eax, byte [eax + 0x1e]
test eax, eax
jne 0x407b0d
cmp dword [edi + 0x128], 0
jne 0x407a41
cmp dword [ebp - 0x18], 0
je 0x407a71
cmp dword [edi + 0x130], 0
je 0x407a71
movzx eax, byte [edi + 0x171]
test eax, 0x80
mov dword [edi + 0x128], 0
je 0x407a64
and eax, 0x7f
mov byte [edi + 0x171], al
jmp 0x407a71
cmp dword [edi + 0x130], 0
jne 0x407b0d
movzx eax, byte [edi + 0x16d]
test al, 0x40
je 0x407a89
cmp byte [edi + 0x156], 1
je 0x407cad
push edi
call fcn.0042d130
add esp, 4
test eax, eax
je 0x407af1
mov edx, dword [edi + 0x18]
test edx, edx
je 0x407c5f
test byte [edx + 0x44], 2
je 0x407acc
mov dword [edx + 0x38], eax
mov edx, dword [edi + 0x18]
mov dword [edx + 0x3c], eax
mov ecx, dword [edi + 0x64]
test ecx, ecx
je 0x407abf
xor edx, edx
mov dword [ecx + 4], edx
mov dword [edi + 0x64], edx
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push eax
movzx edx, byte [edi + 0x16c]
push eax
and edx, 7
push edx
push 0xffffffffffffffff
push edi
call fcn.004299d0
add esp, 0x14
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
add dword [edi + 0x98], 1
adc dword [edi + 0x9c], 0
and byte [edi + 0x16f], 0xfb
and byte [edi + 0x171], 0x7f
movzx eax, byte [esi + 0x4f]
test al, 2
je 0x407b85
push dword [esi + 4]
and eax, 0xfffffffd
mov byte [esi + 0x4f], al
call fcn.00411fe0
add esp, 4
test eax, eax
je 0x407b85
mov edx, dword [edi + 0x18]
test edx, edx
je 0x407c79
test byte [edx + 0x44], 2
je 0x407b60
mov dword [edx + 0x38], eax
mov edx, dword [edi + 0x18]
mov dword [edx + 0x3c], eax
mov ecx, dword [edi + 0x64]
test ecx, ecx
je 0x407b53
xor edx, edx
mov dword [ecx + 4], edx
mov dword [edi + 0x64], edx
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push eax
movzx edx, byte [edi + 0x16c]
push eax
and edx, 7
push edx
push 0xffffffffffffffff
push edi
call fcn.004299d0
add esp, 0x14
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x10]
test edx, edx
je 0x407bed
mov eax, dword [edi + 0x18]
test eax, eax
je 0x407c93
test byte [eax + 0x44], 2
je 0x407bc8
mov dword [eax + 0x38], edx
mov edx, dword [edi + 0x18]
mov eax, dword [esi + 0x10]
mov dword [edx + 0x3c], eax
mov edx, dword [edi + 0x64]
test edx, edx
je 0x407bb8
xor eax, eax
mov dword [edx + 4], eax
mov dword [edi + 0x64], eax
mov eax, dword [esi + 0x10]
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push edx
movzx eax, byte [edi + 0x16c]
push edx
and eax, 7
push eax
push 0xffffffffffffffff
push edi
call fcn.004299d0
add esp, 0x14
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push dword [edi + 0x100]
and byte [edi + 0x16c], 0xdc
and byte [edi + 0x16e], 0xf7
call fcn.00423830
add esp, 4
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov dword [edx + 4], 0
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x407c3b
xor eax, eax
mov dword [esi + 0xc], 2
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [ebp + 0x10]
push eax
lea edx, [ebp + 0xc]
push edx
call fcn.0042e770
add esp, 0xc
cmp eax, 2
je 0x407c25
cmp eax, 1
jne 0x4065c9
jmp 0x407a16
push edi
push eax
push eax
push 1
call fcn.00415e60
add esp, 0x10
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push edi
push eax
push eax
push 1
call fcn.00415e60
add esp, 0x10
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push edi
push edx
push edx
push 1
call fcn.00415e60
add esp, 0x10
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 0x38]
movsx edx, byte [ecx + 5]
cmp edx, 0x20
je 0x407cd7
cmp edx, 0x2b
jne 0x407cc9
mov byte [ecx + 5], 0
movzx eax, byte [edi + 0x16d]
and eax, 0xffffffbf
mov byte [edi + 0x16d], al
jmp 0x407a89
mov byte [ecx + 5], 0x24
movzx eax, byte [edi + 0x16d]
jmp 0x407cc9
push edi
mov eax, 0x69
push eax
push eax
push 1
call fcn.00415e60
add esp, 0x10
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp byte [eax], 2
jne 0x407a16
cmp ebx, 2
jge 0x407a16
xor eax, eax
mov dword [esi + 0xc], 2
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
leave
ret
mov ecx, dword [edi + 0x38]
movsx eax, byte [ecx + 5]
cmp eax, 0x20
je 0x407d62
cmp eax, 0x2b
jne 0x407d4e
mov byte [ecx + 5], 0
movzx eax, byte [edi + 0x16d]
mov dword [ebp - 0x1e0], eax
mov eax, dword [ebp - 0x1e0]
and eax, 0xffffffbf
mov byte [edi + 0x16d], al
jmp 0x406ad5
mov byte [ecx + 5], 0x24
movzx eax, byte [edi + 0x16d]
mov dword [ebp - 0x1e0], eax
jmp 0x407d4e
push edi
mov eax, 0x2c
push eax
push eax
push 1
call fcn.00415e60
add esp, 0x10
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x18]
test eax, eax
je 0x407dfa
test byte [eax + 0x44], 2
je 0x407dd0
mov edx, 0x26
mov dword [eax + 0x38], edx
mov eax, dword [edi + 0x18]
mov dword [eax + 0x3c], edx
mov edx, dword [edi + 0x64]
test edx, edx
je 0x407dbe
xor eax, eax
mov dword [edx + 4], eax
mov dword [edi + 0x64], eax
mov eax, 0x26
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov eax, 0x26
push eax
movzx edx, byte [edi + 0x16c]
push eax
and edx, 7
push edx
push 0xffffffffffffffff
push edi
call fcn.004299d0
add esp, 0x14
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push edi
mov eax, 0x26
push eax
push eax
push 1
call fcn.00415e60
add esp, 0x10
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x18]
test edx, edx
je 0x407e70
test byte [edx + 0x44], 2
je 0x407e4b
mov dword [edx + 0x38], eax
mov edx, dword [edi + 0x18]
mov dword [edx + 0x3c], eax
mov ecx, dword [edi + 0x64]
test ecx, ecx
je 0x407e3e
xor edx, edx
mov dword [ecx + 4], edx
mov dword [edi + 0x64], edx
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push eax
movzx edx, byte [edi + 0x16c]
push eax
and edx, 7
push edx
push 0xffffffffffffffff
push edi
call fcn.004299d0
add esp, 0x14
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push edi
push eax
push eax
push 1
call fcn.00415e60
add esp, 0x10
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
cmp ebx, 2
jge 0x406a6d
xor eax, eax
mov dword [esi + 0xc], 2
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
cmp ebx, 2
jl 0x407a16
jmp 0x406a6d
mov edx, dword [ebp - 0x1c8]
add ecx, 0xffffffd8
shl edx, 3
cmp edx, 0x11
jge 0x407ecd
mov edx, 0x11
mov dword [esi + 0x38], edx
cmp ecx, 0x20
jb 0x40755c
jmp 0x40758b
mov edx, dword [ebp - 0x1c8]
add ecx, 0xffffffd8
shl edx, 3
cmp edx, 0x11
jge 0x407ef4
mov edx, 0x11
mov dword [esi + 0x38], edx
cmp ecx, 0x20
jb 0x40755c
jmp 0x407141
mov eax, dword [ebp - 0x1c8]
add ecx, 0xffffffd8
lea edx, [eax + eax*2]
cmp edx, 7
jge 0x407f1b
mov edx, 7
mov dword [esi + 0x38], edx
cmp ecx, 0x20
jb 0x40755c
jmp 0x40758b
cmp dword [ebp - 0x3cc], 0x34
jg 0x40726b
mov edx, eax
movzx eax, byte [esi + 0x50]
or eax, 2
movsx edx, word [edx*8 + 0x4cd2d8]
mov dword [ebp - 0x2c], eax
mov byte [esi + 0x50], al
movsx eax, word [esi + 0x40]
test eax, eax
mov dword [esi + 0x38], edx
jne 0x407f6d
mov eax, dword [ebp - 0x3cc]
movzx eax, word [eax*8 + 0x4cd2dc]
mov word [esi + 0x40], ax
mov eax, dword [ebp - 0x3cc]
add ecx, 0xffffffd8
cmp ecx, 0x20
movzx eax, word [eax*8 + 0x4cd2de]
mov word [esi + 0x42], ax
jb 0x40755c
jmp 0x40758b
mov eax, dword [ebp - 0x1c8]
add ecx, 0xffffffd8
lea edx, [eax + eax*2]
cmp edx, 7
jge 0x407fa6
mov edx, 7
mov dword [esi + 0x38], edx
cmp ecx, 0x20
jb 0x40755c
jmp 0x407141
cmp dword [ebp - 0x3c4], 0x34
jg 0x407450
add ecx, 0xffffffd8
cmp ecx, 0x20
movsx edx, word [eax*8 + 0x4cd2d8]
mov dword [ebp - 0x380], edx
mov dword [esi + 0x38], edx
movzx edx, word [eax*8 + 0x4cd2dc]
movzx eax, word [eax*8 + 0x4cd2de]
mov word [esi + 0x40], dx
mov word [esi + 0x42], ax
mov edx, dword [ebp - 0x380]
jb 0x40755c
jmp 0x407141
push edi
push eax
push eax
push 1
call fcn.00415e60
add esp, 0x10
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x18]
test edx, edx
je 0x408075
test byte [edx + 0x44], 2
je 0x408050
mov dword [edx + 0x38], eax
mov edx, dword [edi + 0x18]
mov dword [edx + 0x3c], eax
mov ecx, dword [edi + 0x64]
test ecx, ecx
je 0x408043
xor edx, edx
mov dword [ecx + 4], edx
mov dword [edi + 0x64], edx
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push eax
movzx edx, byte [edi + 0x16c]
push eax
and edx, 7
push edx
push 0xffffffffffffffff
push edi
call fcn.004299d0
add esp, 0x14
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push edi
push eax
push eax
push 1
call fcn.00415e60
add esp, 0x10
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x18]
test edx, edx
je 0x4080e6
test byte [edx + 0x44], 2
je 0x4080c1
mov dword [edx + 0x38], eax
mov edx, dword [edi + 0x18]
mov dword [edx + 0x3c], eax
mov ecx, dword [edi + 0x64]
test ecx, ecx
je 0x4080b4
xor edx, edx
mov dword [ecx + 4], edx
mov dword [edi + 0x64], edx
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push eax
movzx edx, byte [edi + 0x16c]
push eax
and edx, 7
push edx
push 0xffffffffffffffff
push edi
call fcn.004299d0
add esp, 0x14
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push edi
push eax
push eax
push 1
call fcn.00415e60
add esp, 0x10
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
movzx eax, byte [esi + 0x50]
jmp 0x4076ae
cmp eax, 0x3f
jne 0x408127
test byte [edi + 0x16f], 8
jne 0x4076ec
mov dword [esi + 0x10], 0x3f
jmp 0x4076ec
mov edx, dword [edi + 0x18]
test edx, edx
je 0x40817e
test byte [edx + 0x44], 2
je 0x408159
mov dword [edx + 0x38], eax
mov edx, dword [edi + 0x18]
mov dword [edx + 0x3c], eax
mov ecx, dword [edi + 0x64]
test ecx, ecx
je 0x40814c
xor edx, edx
mov dword [ecx + 4], edx
mov dword [edi + 0x64], edx
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push eax
movzx edx, byte [edi + 0x16c]
push eax
and edx, 7
push edx
push 0xffffffffffffffff
push edi
call fcn.004299d0
add esp, 0x14
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push edi
push eax
push eax
push 1
call fcn.00415e60
add esp, 0x10
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x34]
add eax, edx
cmp eax, 0x200
mov edx, dword [edi + 0xf8]
jge 0x4081b2
mov eax, 0x200
shr edx, 3
cmp eax, edx
jge 0x4081bb
mov eax, edx
push eax
push edi
call fcn.0042f5c0
add esp, 8
test eax, eax
je 0x40765d
mov eax, dword [edi + 0x18]
test eax, eax
je 0x408233
test byte [eax + 0x44], 2
je 0x408209
mov edx, 0x42
mov dword [eax + 0x38], edx
mov eax, dword [edi + 0x18]
mov dword [eax + 0x3c], edx
mov edx, dword [edi + 0x64]
test edx, edx
je 0x4081f7
xor eax, eax
mov dword [edx + 4], eax
mov dword [edi + 0x64], eax
mov eax, 0x42
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov eax, 0x42
push eax
movzx edx, byte [edi + 0x16c]
push eax
and edx, 7
push edx
push 0xffffffffffffffff
push edi
call fcn.004299d0
add esp, 0x14
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push edi
mov eax, 0x42
push eax
push eax
push 1
call fcn.00415e60
add esp, 0x10
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x18]
test edx, edx
je 0x4082a9
test byte [edx + 0x44], 2
je 0x408284
mov dword [edx + 0x38], eax
mov edx, dword [edi + 0x18]
mov dword [edx + 0x3c], eax
mov ecx, dword [edi + 0x64]
test ecx, ecx
je 0x408277
xor edx, edx
mov dword [ecx + 4], edx
mov dword [edi + 0x64], edx
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push eax
movzx edx, byte [edi + 0x16c]
push eax
and edx, 7
push edx
push 0xffffffffffffffff
push edi
call fcn.004299d0
add esp, 0x14
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push edi
push eax
push eax
push 1
call fcn.00415e60
add esp, 0x10
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x18]
test edx, edx
je 0x40831a
test byte [edx + 0x44], 2
je 0x4082f5
mov dword [edx + 0x38], eax
mov edx, dword [edi + 0x18]
mov dword [edx + 0x3c], eax
mov ecx, dword [edi + 0x64]
test ecx, ecx
je 0x4082e8
xor edx, edx
mov dword [ecx + 4], edx
mov dword [edi + 0x64], edx
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push eax
movzx edx, byte [edi + 0x16c]
push eax
and edx, 7
push edx
push 0xffffffffffffffff
push edi
call fcn.004299d0
add esp, 0x14
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push edi
push eax
push eax
push 1
call fcn.00415e60
add esp, 0x10
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x20], 0
jne 0x406663
cmp ebx, 1
jg 0x406663
or eax, 0x40
jmp 0x406666
cmp dword [ebp - 0x20], 0
jne 0x406653
cmp ebx, 1
jg 0x406653
movzx eax, byte [esi + 0x4f]
or eax, 0x20
jmp 0x406663
xor eax, eax
mov dword [esi + 0xc], edx
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0xc]
test edx, edx
mov ebx, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
lea ecx, [edx + 1]
jne 0x408395
mov ecx, 2
xor eax, eax
mov dword [esi + 0xc], ecx
mov esi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
xor eax, eax
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret