Function at 0x4070e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x29c
mov esi, ecx
test edx, edx
je 0x40755f
lea eax, [esi + 0x8f12]
push 0x90
push 8
push eax
call fcn.00408d90
add esp, 0xc
lea eax, [esi + 0x8fa2]
push 0x70
push 9
push eax
call fcn.00408d90
add esp, 0xc
mov dword [esi + 0x9012], 0x7070707
mov dword [esi + 0x9016], 0x7070707
mov dword [esi + 0x901a], 0x7070707
mov dword [esi + 0x901e], 0x7070707
mov dword [esi + 0x9022], 0x7070707
mov dword [esi + 0x9026], 0x7070707
mov dword [esi + 0x902e], 0x8080808
mov dword [esi + 0x902a], 0x8080808
mov dword [esi + 0x9032], 0x5050505
mov dword [esi + 0x9036], 0x5050505
mov dword [esi + 0x903a], 0x5050505
mov dword [esi + 0x903e], 0x5050505
mov dword [esi + 0x9042], 0x5050505
mov dword [esi + 0x9046], 0x5050505
mov dword [esi + 0x904a], 0x5050505
mov dword [esi + 0x904e], 0x5050505
lea eax, [esp + 0x15c]
push 0x84
push 0
push eax
call fcn.00408d90
add esp, 0xc
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esi + eax + 0x8f12]
inc dword [esp + ecx*4 + 0x15c]
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
cmp eax, 0x120
jl 0x4071e0
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x160]
add eax, eax
mov dword [esp + 0x24], eax
add eax, dword [esp + 0x164]
add eax, eax
mov dword [esp + 0x28], eax
add eax, dword [esp + 0x168]
add eax, eax
mov dword [esp + 0x2c], eax
add eax, dword [esp + 0x16c]
add eax, eax
mov dword [esp + 0x30], eax
add eax, dword [esp + 0x170]
add eax, eax
mov dword [esp + 0x34], eax
add eax, dword [esp + 0x174]
add eax, eax
mov dword [esp + 0x38], eax
add eax, dword [esp + 0x178]
add eax, eax
mov dword [esp + 0x3c], eax
add eax, dword [esp + 0x17c]
add eax, eax
mov dword [esp + 0x40], eax
add eax, dword [esp + 0x180]
add eax, eax
mov dword [esp + 0x44], eax
add eax, dword [esp + 0x184]
add eax, eax
mov dword [esp + 0x48], eax
add eax, dword [esp + 0x188]
add eax, eax
mov dword [esp + 0x4c], eax
add eax, dword [esp + 0x18c]
add eax, eax
mov dword [esp + 0x50], eax
add eax, dword [esp + 0x190]
add eax, eax
mov dword [esp + 0x54], eax
add eax, dword [esp + 0x194]
add eax, eax
mov dword [esp + 0x58], eax
xor eax, eax
jmp 0x4072e4
mov word [esi + eax*2 + 0x8852], bx
inc eax
cmp eax, 0x120
je 0x407362
movzx edx, byte [esi + eax + 0x8f12]
test edx, edx
je 0x4072d8
mov edi, dword [esp + edx*4 + 0x1c]
lea ebx, [edi + 1]
mov dword [esp + edx*4 + 0x1c], ebx
mov ebp, edx
and ebp, 3
xor ebx, ebx
cmp dl, 4
jb 0x40733f
and edx, 0xfffffffc
xor ebx, ebx
nop
nop
nop
nop
mov ecx, edi
and ecx, 1
shl ecx, 2
lea ecx, [ecx + ebx*8]
mov ebx, edi
and ebx, 2
or ebx, ecx
mov ecx, edi
shr ecx, 2
and ecx, 1
or ecx, ebx
mov ebx, edi
shr ebx, 3
and ebx, 1
lea ebx, [ebx + ecx*2]
shr edi, 4
add edx, 0xfffffffc
jne 0x407310
test ebp, ebp
je 0x4072d0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, edi
and ecx, 1
lea ebx, [ecx + ebx*2]
shr edi, 1
dec ebp
jne 0x407350
jmp 0x4072d0
push 0x84
push 0
lea eax, [esp + 0x164]
push eax
call fcn.00408d90
add esp, 0xc
xor eax, eax
nop
nop
nop
nop
nop
movzx ecx, byte [esi + eax + 0x9032]
inc dword [esp + ecx*4 + 0x15c]
mov ecx, eax
and ecx, 1
xor eax, 1
lea ecx, [eax + ecx*2]
movzx edx, byte [esi + ecx + 0x9032]
inc dword [esp + edx*4 + 0x15c]
and eax, 1
xor ecx, 1
lea eax, [ecx + eax*2]
cmp eax, 0x20
jl 0x407380
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x160]
add eax, eax
mov dword [esp + 0x24], eax
add eax, dword [esp + 0x164]
add eax, eax
mov dword [esp + 0x28], eax
add eax, dword [esp + 0x168]
add eax, eax
mov dword [esp + 0x2c], eax
add eax, dword [esp + 0x16c]
add eax, eax
mov dword [esp + 0x30], eax
add eax, dword [esp + 0x170]
add eax, eax
mov dword [esp + 0x34], eax
add eax, dword [esp + 0x174]
add eax, eax
mov dword [esp + 0x38], eax
add eax, dword [esp + 0x178]
add eax, eax
mov dword [esp + 0x3c], eax
add eax, dword [esp + 0x17c]
add eax, eax
mov dword [esp + 0x40], eax
add eax, dword [esp + 0x180]
add eax, eax
mov dword [esp + 0x44], eax
add eax, dword [esp + 0x184]
add eax, eax
mov dword [esp + 0x48], eax
add eax, dword [esp + 0x188]
add eax, eax
mov dword [esp + 0x4c], eax
add eax, dword [esp + 0x18c]
add eax, eax
mov dword [esp + 0x50], eax
add eax, dword [esp + 0x190]
add eax, eax
mov dword [esp + 0x54], eax
add eax, dword [esp + 0x194]
add eax, eax
mov dword [esp + 0x58], eax
xor eax, eax
jmp 0x407492
mov word [esi + eax*2 + 0x8a92], di
inc eax
cmp eax, 0x20
je 0x407512
movzx ebx, byte [esi + eax + 0x9032]
test ebx, ebx
je 0x407488
mov ecx, dword [esp + ebx*4 + 0x1c]
lea edx, [ecx + 1]
mov dword [esp + ebx*4 + 0x1c], edx
mov edx, ebx
and edx, 3
xor edi, edi
cmp bl, 4
jb 0x4074fb
and ebx, 0xfffffffc
xor edi, edi
nop
nop
nop
nop
nop
nop
mov ebp, ecx
and ebp, 1
shl ebp, 2
lea edi, [edi*8]
add edi, ebp
mov ebp, ecx
and ebp, 2
or ebp, edi
mov edi, ecx
shr edi, 2
and edi, 1
or edi, ebp
mov ebp, ecx
shr ebp, 3
and ebp, 1
lea edi, [edi*2]
add edi, ebp
shr ecx, 4
add ebx, 0xfffffffc
jne 0x4074c0
test edx, edx
je 0x407480
nop
mov ebx, ecx
and ebx, 1
lea edi, [ebx + edi*2]
shr ecx, 1
dec edx
jne 0x407500
jmp 0x407480
mov eax, dword [esi + 0x44]
mov ebp, dword [esi + 0x48]
bts ebp, eax
mov dword [esi + 0x48], ebp
add eax, 2
mov dword [esi + 0x44], eax
cmp eax, 8
jae 0x407545
jmp 0x4080a9
shr ebp, 8
mov dword [esi + 0x48], ebp
add eax, 0xfffffff8
mov dword [esi + 0x44], eax
cmp eax, 7
jbe 0x4080a9
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x407530
lea eax, [ecx + 1]
mov dword [esi + 0x30], eax
mov eax, ebp
mov byte [ecx], al
mov eax, dword [esi + 0x44]
mov ebp, dword [esi + 0x48]
jmp 0x407530
mov word [esi + 0x8392], 1
mov ecx, esi
xor edx, edx
push 0
push 0xf
push 0x120
call fcn.004083c0
add esp, 0xc
mov ecx, esi
mov edx, 1
push 0
push 0xf
push 0x20
call fcn.004083c0
add esp, 0xc
mov edx, 0x11e
cmp byte [esi + 0x902f], 0
jne 0x407775
mov edx, 0x11d
cmp byte [esi + 0x902e], 0
jne 0x407775
mov edx, 0x11c
cmp byte [esi + 0x902d], 0
jne 0x407775
mov edx, 0x11b
cmp byte [esi + 0x902c], 0
jne 0x407775
mov edx, 0x11a
cmp byte [esi + 0x902b], 0
jne 0x407775
mov edx, 0x119
cmp byte [esi + 0x902a], 0
jne 0x407775
mov edx, 0x118
cmp byte [esi + 0x9029], 0
jne 0x407775
mov edx, 0x117
cmp byte [esi + 0x9028], 0
jne 0x407775
mov edx, 0x116
cmp byte [esi + 0x9027], 0
jne 0x407775
mov edx, 0x115
cmp byte [esi + 0x9026], 0
jne 0x407775
mov edx, 0x114
cmp byte [esi + 0x9025], 0
jne 0x407775
mov edx, 0x113
cmp byte [esi + 0x9024], 0
jne 0x407775
mov edx, 0x112
cmp byte [esi + 0x9023], 0
jne 0x407775
mov edx, 0x111
cmp byte [esi + 0x9022], 0
jne 0x407775
mov edx, 0x110
cmp byte [esi + 0x9021], 0
jne 0x407775
mov edx, 0x10f
cmp byte [esi + 0x9020], 0
jne 0x407775
mov edx, 0x10e
cmp byte [esi + 0x901f], 0
jne 0x407775
mov edx, 0x10d
cmp byte [esi + 0x901e], 0
jne 0x407775
mov edx, 0x10c
cmp byte [esi + 0x901d], 0
jne 0x407775
mov edx, 0x10b
cmp byte [esi + 0x901c], 0
jne 0x407775
mov edx, 0x10a
cmp byte [esi + 0x901b], 0
jne 0x407775
mov edx, 0x109
cmp byte [esi + 0x901a], 0
jne 0x407775
mov edx, 0x108
cmp byte [esi + 0x9019], 0
jne 0x407775
mov edx, 0x107
cmp byte [esi + 0x9018], 0
jne 0x407775
mov edx, 0x106
cmp byte [esi + 0x9017], 0
jne 0x407775
mov edx, 0x105
cmp byte [esi + 0x9016], 0
jne 0x407775
mov edx, 0x104
cmp byte [esi + 0x9015], 0
jne 0x407775
mov edx, 0x103
cmp byte [esi + 0x9014], 0
jne 0x407775
cmp byte [esi + 0x9013], 1
mov edx, 0x102
sbb edx, 0
lea eax, [esi + 0x8f12]
mov edi, 0x1e
cmp byte [esi + 0x904f], 0
jne 0x40795e
mov edi, 0x1d
cmp byte [esi + 0x904e], 0
jne 0x40795e
mov edi, 0x1c
cmp byte [esi + 0x904d], 0
jne 0x40795e
mov edi, 0x1b
cmp byte [esi + 0x904c], 0
jne 0x40795e
mov edi, 0x1a
cmp byte [esi + 0x904b], 0
jne 0x40795e
mov edi, 0x19
cmp byte [esi + 0x904a], 0
jne 0x40795e
mov edi, 0x18
cmp byte [esi + 0x9049], 0
jne 0x40795e
mov edi, 0x17
cmp byte [esi + 0x9048], 0
jne 0x40795e
mov edi, 0x16
cmp byte [esi + 0x9047], 0
jne 0x40795e
mov edi, 0x15
cmp byte [esi + 0x9046], 0
jne 0x40795e
mov edi, 0x14
cmp byte [esi + 0x9045], 0
jne 0x40795e
mov edi, 0x13
cmp byte [esi + 0x9044], 0
jne 0x40795e
mov edi, 0x12
cmp byte [esi + 0x9043], 0
jne 0x40795e
mov edi, 0x11
cmp byte [esi + 0x9042], 0
jne 0x40795e
mov edi, 0x10
cmp byte [esi + 0x9041], 0
jne 0x40795e
mov edi, 0xf
cmp byte [esi + 0x9040], 0
jne 0x40795e
mov edi, 0xe
cmp byte [esi + 0x903f], 0
jne 0x40795e
mov edi, 0xd
cmp byte [esi + 0x903e], 0
jne 0x40795e
mov edi, 0xc
cmp byte [esi + 0x903d], 0
jne 0x40795e
mov edi, 0xb
cmp byte [esi + 0x903c], 0
jne 0x40795e
mov edi, 0xa
cmp byte [esi + 0x903b], 0
jne 0x40795e
mov edi, 9
cmp byte [esi + 0x903a], 0
jne 0x40795e
mov edi, 8
cmp byte [esi + 0x9039], 0
jne 0x40795e
mov edi, 7
cmp byte [esi + 0x9038], 0
jne 0x40795e
mov edi, 6
cmp byte [esi + 0x9037], 0
jne 0x40795e
mov edi, 5
cmp byte [esi + 0x9036], 0
jne 0x40795e
mov edi, 4
cmp byte [esi + 0x9035], 0
jne 0x40795e
mov edi, 3
cmp byte [esi + 0x9034], 0
jne 0x40795e
cmp byte [esi + 0x9033], 1
mov edi, 2
sbb edi, 0
lea ecx, [esp + 0x15c]
push edx
push eax
push ecx
mov dword [esp + 0x1c], edx
call fcn.00408d30
add esp, 0xc
mov eax, dword [esp + 0x10]
add eax, esp
add eax, 0x15c
lea ecx, [esi + 0x9032]
push edi
push ecx
push eax
call fcn.00408d30
add esp, 0xc
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x10]
add eax, edi
mov dword [esp + 4], eax
lea eax, [esi + 0x8612]
mov dword [esp + 0x14], eax
mov dword [esi + 0x8612], 0
mov dword [esi + 0x8616], 0
mov dword [esi + 0x861a], 0
mov dword [esi + 0x861e], 0
mov dword [esi + 0x8622], 0
mov dword [esi + 0x8626], 0
mov dword [esi + 0x862a], 0
mov dword [esi + 0x862e], 0
mov dword [esi + 0x8632], 0
mov word [esi + 0x8636], 0
mov cl, 0xff
xor ebp, ebp
xor eax, eax
xor ebx, ebx
xor edi, edi
jmp 0x407a55
inc word [esi + 0x8632]
mov byte [esp + ebp + 0x1c], 0x10
mov ebx, eax
xor eax, 0xfc
and ebx, 0x7c
lea eax, [eax + ebx*2]
inc al
mov byte [esp + ebp + 0x1d], al
add ebp, 2
inc word [esi + ecx*2 + 0x8612]
mov byte [esp + ebp + 0x1c], cl
inc ebp
xor ebx, ebx
xor eax, eax
inc edi
cmp dword [esp + 4], edi
je 0x407c06
mov edx, ecx
movzx ecx, byte [esp + edi + 0x15c]
test ecx, ecx
je 0x407ab0
test ebx, ebx
je 0x407b54
mov dword [esp], eax
cmp ebx, 2
ja 0x407b09
mov eax, dword [esp + 0x14]
add word [eax], bx
lea eax, [esp + ebp]
add eax, 0x1c
push ebx
push 0
push eax
mov dword [esp + 0x14], ebp
mov ebp, ecx
mov byte [esp + 0x18], dl
call fcn.00408d90
movzx edx, byte [esp + 0x18]
mov ecx, ebp
add esp, 0xc
add ebx, dword [esp + 8]
mov ebp, ebx
jmp 0x407b51
test eax, eax
je 0x407bc4
cmp eax, 2
ja 0x407b24
mov dword [esp + 8], ecx
mov ecx, eax
mov dword [esp], eax
movzx eax, dl
add word [esi + eax*2 + 0x8612], cx
mov eax, ebp
and eax, 1
mov ecx, ebp
xor ecx, 1
lea eax, [ecx + eax*2]
mov byte [esp + 0xc], dl
mov byte [esp + ebp + 0x1c], dl
cmp dword [esp], 1
je 0x407bbe
and ecx, 1
mov edx, eax
xor edx, 1
lea ebp, [edx + ecx*2]
movzx ecx, byte [esp + 0xc]
mov byte [esp + eax + 0x1c], cl
jmp 0x407bc0
mov eax, ebp
add ebp, 2
cmp ebx, 0xa
ja 0x407b3e
inc word [esi + 0x8634]
mov byte [esp + eax + 0x1c], 0x11
add bl, 0xfd
jmp 0x407b4d
inc word [esi + 0x8632]
mov byte [esp + ebp + 0x1c], 0x10
add al, 0xfd
mov byte [esp + ebp + 0x1d], al
add ebp, 2
jmp 0x407bc4
inc word [esi + 0x8636]
mov byte [esp + eax + 0x1c], 0x12
add bl, 0xf5
mov byte [esp + eax + 0x1d], bl
mov eax, dword [esp]
cmp cl, dl
jne 0x407b80
inc eax
xor ebx, ebx
cmp eax, 6
jne 0x407a4a
inc word [esi + 0x8632]
mov word [esp + ebp + 0x1c], 0x310
add ebp, 2
jmp 0x407a46
test eax, eax
je 0x407a39
cmp eax, 2
ja 0x407a17
mov ebx, eax
movzx eax, dl
add word [esi + eax*2 + 0x8612], bx
mov dword [esp + 8], ecx
lea ecx, [esp + ebp]
add ecx, 0x1c
push ebx
push eax
push ecx
call fcn.00408d90
mov ecx, dword [esp + 0x14]
add esp, 0xc
add ebp, ebx
jmp 0x407a39
mov ebp, eax
mov ecx, dword [esp + 8]
lea eax, [ebx + 1]
cmp eax, 0x8a
je 0x407bd5
mov ebx, eax
jmp 0x407a48
inc word [esi + 0x8636]
mov eax, ebp
mov byte [esp + ebp + 0x1c], 0x12
mov edx, ebp
mov ebp, ecx
mov ecx, edx
and ecx, 1
xor eax, 1
lea edx, [eax + ecx*2]
add bl, 0xf6
mov byte [esp + edx + 0x1c], bl
lea eax, [eax + ecx*2]
inc eax
mov ecx, ebp
mov ebp, eax
jmp 0x407a46
test eax, eax
je 0x407c35
cmp eax, 2
ja 0x407c5f
add word [esi + ecx*2 + 0x8612], ax
mov edi, eax
lea eax, [esp + ebp]
add eax, 0x1c
movzx ecx, cl
push edi
push ecx
push eax
call fcn.00408d90
add esp, 0xc
add ebp, edi
mov dword [esp + 4], ebp
jmp 0x407caa
test ebx, ebx
je 0x407c74
cmp ebx, 2
ja 0x407c7a
mov eax, dword [esp + 0x14]
add word [eax], bx
lea eax, [esp + ebp]
add eax, 0x1c
push ebx
push 0
push eax
call fcn.00408d90
add esp, 0xc
add ebp, ebx
mov dword [esp + 4], ebp
jmp 0x407caa
inc word [esi + 0x8632]
mov byte [esp + ebp + 0x1c], 0x10
add al, 0xfd
mov byte [esp + ebp + 0x1d], al
add ebp, 2
mov dword [esp + 4], ebp
jmp 0x407caa
lea eax, [ebp + 2]
mov dword [esp + 4], eax
cmp ebx, 0xa
ja 0x407c97
inc word [esi + 0x8634]
mov byte [esp + ebp + 0x1c], 0x11
add bl, 0xfd
jmp 0x407ca6
inc word [esi + 0x8636]
mov byte [esp + ebp + 0x1c], 0x12
add bl, 0xf5
mov byte [esp + ebp + 0x1d], bl
mov ebx, 2
mov ecx, esi
mov edx, 2
push 0
push 7
push 0x13
call fcn.004083c0
add esp, 0xc
mov ecx, dword [esi + 0x44]
shl ebx, cl
or ebx, dword [esi + 0x48]
mov dword [esi + 0x48], ebx
add ecx, 2
mov dword [esi + 0x44], ecx
cmp ecx, 8
jb 0x407d09
mov edx, dword [esp + 0x10]
jmp 0x407cf1
shr ebx, 8
mov dword [esi + 0x48], ebx
add ecx, 0xfffffff8
mov dword [esi + 0x44], ecx
cmp ecx, 7
jbe 0x407d0d
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x407ce0
lea ecx, [eax + 1]
mov dword [esi + 0x30], ecx
mov byte [eax], bl
mov ecx, dword [esi + 0x44]
mov ebx, dword [esi + 0x48]
jmp 0x407ce0
mov edx, dword [esp + 0x10]
add edx, 0xfffffeff
shl edx, cl
or edx, ebx
mov dword [esi + 0x48], edx
lea eax, [ecx + 5]
mov dword [esi + 0x44], eax
cmp ecx, 3
jb 0x407d59
mov ebx, dword [esp + 0x18]
jmp 0x407d41
shr edx, 8
mov dword [esi + 0x48], edx
add eax, 0xfffffff8
mov dword [esi + 0x44], eax
cmp eax, 7
jbe 0x407d5d
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x407d30
lea eax, [ecx + 1]
mov dword [esi + 0x30], eax
mov byte [ecx], dl
mov eax, dword [esi + 0x44]
mov edx, dword [esi + 0x48]
jmp 0x407d30
mov ebx, dword [esp + 0x18]
dec ebx
mov ecx, eax
shl ebx, cl
mov ecx, ebx
not ecx
and ecx, edx
xor ebx, edx
add ebx, edx
sub ebx, ecx
mov dword [esi + 0x48], ebx
lea ecx, [eax + 5]
mov dword [esi + 0x44], ecx
cmp eax, 3
jae 0x407f75
mov edx, 0x13
cmp byte [esi + 0x9161], 0
jne 0x407eae
mov edx, 0x12
cmp byte [esi + 0x9153], 0
jne 0x407eae
mov edx, 0x11
cmp byte [esi + 0x9160], 0
jne 0x407eae
mov edx, 0x10
cmp byte [esi + 0x9154], 0
jne 0x407eae
mov edx, 0xf
cmp byte [esi + 0x915f], 0
jne 0x407eae
mov edx, 0xe
cmp byte [esi + 0x9155], 0
jne 0x407eae
mov edx, 0xd
cmp byte [esi + 0x915e], 0
jne 0x407eae
mov edx, 0xc
cmp byte [esi + 0x9156], 0
jne 0x407eae
mov edx, 0xb
cmp byte [esi + 0x915d], 0
jne 0x407eae
mov edx, 0xa
cmp byte [esi + 0x9157], 0
jne 0x407eae
mov edx, 9
cmp byte [esi + 0x915c], 0
jne 0x407eae
mov edx, 8
cmp byte [esi + 0x9158], 0
jne 0x407eae
mov edx, 7
cmp byte [esi + 0x915b], 0
jne 0x407eae
mov edx, 6
cmp byte [esi + 0x9159], 0
jne 0x407eae
mov edx, 5
cmp byte [esi + 0x915a], 0
jne 0x407eae
mov edx, 4
cmp byte [esi + 0x9152], 0
jne 0x407eae
mov edx, 3
cmp byte [esi + 0x9164], 0
jne 0x407eae
mov edx, 2
cmp byte [esi + 0x9163], 0
jne 0x407eae
mov edx, 1
cmp byte [esi + 0x9162], 0
je 0x407eb3
cmp edx, 5
jge 0x407eb8
mov edx, 4
lea eax, [edx - 4]
shl eax, cl
or eax, ebx
mov ebp, eax
mov dword [esi + 0x48], eax
lea eax, [ecx + 4]
mov dword [esi + 0x44], eax
cmp ecx, 4
jae 0x407fb7
xor ebx, ebx
jmp 0x407ee9
inc ebx
cmp ebx, edx
je 0x407fc3
movzx ecx, byte [ebx + 0x43dff6]
movzx edi, byte [esi + ecx + 0x9152]
mov ecx, eax
shl edi, cl
or edi, ebp
mov ebp, edi
mov dword [esi + 0x48], edi
mov ecx, eax
and ecx, 3
xor eax, 3
lea eax, [eax + ecx*2]
mov dword [esi + 0x44], eax
cmp eax, 8
jae 0x407f4c
jmp 0x407ee0
lea eax, [ecx + 1]
mov dword [esi + 0x30], eax
mov eax, ebp
mov byte [ecx], al
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x48]
shr ecx, 8
mov ebp, ecx
mov dword [esi + 0x48], ecx
mov ecx, eax
xor ecx, 0xfffffff7
and eax, 0xfffffff7
lea eax, [ecx + eax*2]
inc eax
mov dword [esi + 0x44], eax
cmp eax, 7
jbe 0x407ee0
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jb 0x407f20
mov ecx, ebp
jmp 0x407f30
shr ebx, 8
mov dword [esi + 0x48], ebx
add ecx, 0xfffffff8
mov dword [esi + 0x44], ecx
cmp ecx, 7
jbe 0x407d80
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x407f60
lea ecx, [eax + 1]
mov dword [esi + 0x30], ecx
mov byte [eax], bl
mov ecx, dword [esi + 0x44]
mov ebx, dword [esi + 0x48]
jmp 0x407f60
lea eax, [ecx + 1]
mov dword [esi + 0x30], eax
mov eax, ebp
mov byte [ecx], al
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x48]
shr ecx, 8
mov ebp, ecx
mov dword [esi + 0x48], ecx
add eax, 0xfffffff8
mov dword [esi + 0x44], eax
cmp eax, 7
jbe 0x407ed3
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jb 0x407f90
mov ecx, ebp
jmp 0x407fa0
cmp dword [esp + 4], 0
je 0x4080a9
xor edi, edi
jmp 0x407feb
inc edi
cmp edi, dword [esp + 4]
jae 0x4080a9
mov ecx, eax
movzx ebx, byte [esp + edi + 0x1c]
movzx edx, word [esi + ebx*2 + 0x8cd2]
movzx eax, byte [esi + ebx + 0x9152]
add eax, ecx
shl edx, cl
mov ecx, edx
not ecx
and ecx, ebp
xor edx, ebp
add ebp, edx
sub ebp, ecx
mov dword [esi + 0x48], ebp
mov dword [esi + 0x44], eax
cmp eax, 8
jae 0x408061
cmp bl, 0x10
jb 0x407fe0
movzx edx, byte [esp + edi + 0x1d]
add edi, 2
movsx ebx, byte [ebx + 0x43f67c]
mov ecx, eax
shl edx, cl
or edx, ebp
mov dword [esi + 0x48], edx
add ebx, eax
mov dword [esi + 0x44], ebx
cmp ebx, 8
jae 0x408091
mov ebp, edx
mov eax, ebx
cmp edi, dword [esp + 4]
jb 0x407feb
jmp 0x4080a9
shr ebp, 8
mov dword [esi + 0x48], ebp
add eax, 0xfffffff8
mov dword [esi + 0x44], eax
cmp eax, 7
jbe 0x40801d
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x408050
lea eax, [ecx + 1]
mov dword [esi + 0x30], eax
mov eax, ebp
mov byte [ecx], al
mov eax, dword [esi + 0x44]
mov ebp, dword [esi + 0x48]
jmp 0x408050
shr edx, 8
mov dword [esi + 0x48], edx
add ebx, 0xfffffff8
mov dword [esi + 0x44], ebx
cmp ebx, 7
jbe 0x408044
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x408080
lea ecx, [eax + 1]
mov dword [esi + 0x30], ecx
mov byte [eax], dl
mov ebx, dword [esi + 0x44]
mov edx, dword [esi + 0x48]
jmp 0x408080
lea edi, [esi + 0x9272]
cmp edi, dword [esi + 0x28]
jae 0x40834f
mov ebx, 1
jmp 0x4080d1
mov ebx, dword [esp + 4]
shr ebx, 1
mov eax, edx
cmp edi, dword [esi + 0x28]
jae 0x408351
cmp ebx, 1
jne 0x4080e0
movzx ebx, byte [edi]
inc edi
or ebx, 0x100
mov dword [esp + 4], ebx
test bl, 1
jne 0x408150
movzx ecx, byte [edi]
inc edi
mov ebx, edi
movzx edi, word [esi + ecx*2 + 0x8852]
movzx edx, byte [esi + ecx + 0x8f12]
mov ecx, eax
shl edi, cl
or ebp, edi
mov dword [esi + 0x48], ebp
add edx, eax
mov dword [esi + 0x44], edx
mov edi, ebx
cmp edx, 8
jb 0x4080c0
mov ebx, dword [esp + 4]
jmp 0x408131
shr ebp, 8
mov dword [esi + 0x48], ebp
add edx, 0xfffffff8
mov dword [esi + 0x44], edx
cmp edx, 7
jbe 0x4080c4
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x408120
mov edx, ebp
lea ecx, [eax + 1]
mov dword [esi + 0x30], ecx
mov byte [eax], dl
mov edx, dword [esi + 0x44]
mov ebp, dword [esi + 0x48]
jmp 0x408120
movzx edx, byte [edi]
movzx ecx, word [edx + edx + 0x43ddf6]
movzx ebx, word [esi + ecx*2 + 0x8852]
mov dword [esp], ebx
movzx ebx, byte [esi + ecx + 0x8f12]
add ebx, eax
mov ecx, eax
mov eax, dword [esp]
shl eax, cl
movzx ecx, byte [edi + 1]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edi
movzx ecx, byte [edi + 2]
or ebp, eax
mov dword [esp + 0x14], ecx
shl ecx, 8
mov dword [esp], ecx
mov dword [esi + 0x48], ebp
mov dword [esi + 0x44], ebx
cmp ebx, 8
jb 0x4081e0
mov eax, dword [esp + 8]
jmp 0x4081d3
lea edi, [ecx + 1]
mov dword [esi + 0x30], edi
mov ebx, ebp
mov byte [ecx], bl
mov ebx, dword [esi + 0x44]
mov ecx, dword [esi + 0x48]
shr ecx, 8
mov ebp, ecx
mov dword [esi + 0x48], ecx
add ebx, 0xfffffff8
mov dword [esi + 0x44], ebx
cmp ebx, 7
jbe 0x4081e4
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jb 0x4081b0
mov ecx, ebp
jmp 0x4081c0
mov eax, dword [esp + 8]
movzx edi, byte [edx + 0x43e050]
and edx, dword [edi*4 + 0x43e00c]
mov ecx, ebx
shl edx, cl
add dword [esp], eax
mov eax, edx
not eax
and eax, ebp
xor edx, ebp
add edx, ebp
sub edx, eax
mov dword [esi + 0x48], edx
add ebx, edi
mov dword [esi + 0x44], ebx
cmp ebx, 8
jb 0x408250
mov ebp, dword [esp]
jmp 0x408231
shr edx, 8
mov dword [esi + 0x48], edx
add ebx, 0xfffffff8
mov dword [esi + 0x44], ebx
cmp ebx, 7
jbe 0x408253
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x408220
lea ecx, [eax + 1]
mov dword [esi + 0x30], ecx
mov byte [eax], dl
mov ebx, dword [esi + 0x44]
mov edx, dword [esi + 0x48]
jmp 0x408220
mov ebp, dword [esp]
cmp ebp, 0x200
jb 0x408270
mov ecx, dword [esp + 0x14]
lea eax, [ecx + 0x43dd76]
lea ecx, [ecx + 0x43e350]
jmp 0x40827c
lea eax, [ebp + 0x43db76]
lea ecx, [ebp + 0x43e150]
mov dword [esp], ecx
movzx edi, byte [eax]
movzx eax, word [esi + edi*2 + 0x8a92]
mov ecx, ebx
shl eax, cl
or eax, edx
movzx edx, byte [esi + edi + 0x9032]
add edx, ebx
mov ecx, dword [esp]
movzx ebx, byte [ecx]
mov dword [esi + 0x48], eax
mov dword [esi + 0x44], edx
cmp edx, 8
jb 0x4082f0
mov edi, dword [esp + 0xc]
jmp 0x4082d1
shr eax, 8
mov dword [esi + 0x48], eax
add edx, 0xfffffff8
mov dword [esi + 0x44], edx
cmp edx, 7
jbe 0x4082f4
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x4082c0
lea edx, [ecx + 1]
mov dword [esi + 0x30], edx
mov byte [ecx], al
mov edx, dword [esi + 0x44]
mov eax, dword [esi + 0x48]
jmp 0x4082c0
mov edi, dword [esp + 0xc]
and ebp, dword [ebx*4 + 0x43e00c]
mov ecx, edx
shl ebp, cl
add edi, 3
or ebp, eax
mov dword [esi + 0x48], ebp
add edx, ebx
mov dword [esi + 0x44], edx
cmp edx, 8
jb 0x4080c0
mov ebx, dword [esp + 4]
jmp 0x408335
shr ebp, 8
mov dword [esi + 0x48], ebp
add edx, 0xfffffff8
mov dword [esi + 0x44], edx
cmp edx, 7
jbe 0x4080c4
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x408320
mov edx, ebp
lea ecx, [eax + 1]
mov dword [esi + 0x30], ecx
mov byte [eax], dl
mov edx, dword [esi + 0x44]
mov ebp, dword [esi + 0x48]
jmp 0x408320
mov edx, eax
movzx eax, word [esi + 0x8a52]
movzx edi, byte [esi + 0x9012]
mov ecx, edx
shl eax, cl
or eax, ebp
mov dword [esi + 0x48], eax
add edi, edx
mov dword [esi + 0x44], edi
cmp edi, 8
jae 0x4083a1
mov ecx, dword [esi + 0x30]
xor eax, eax
cmp ecx, dword [esi + 0x34]
setb al
add esp, 0x29c
pop esi
pop edi
pop ebx
pop ebp
ret
shr eax, 8
mov dword [esi + 0x48], eax
add edi, 0xfffffff8
mov dword [esi + 0x44], edi
cmp edi, 7
jbe 0x408372
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x408390
lea edx, [ecx + 1]
mov dword [esi + 0x30], edx
mov byte [ecx], al
mov edi, dword [esi + 0x44]
mov eax, dword [esi + 0x48]
jmp 0x408390