Function at 0x407470
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2a4
mov esi, ecx
test edx, edx
je 0x40791d
lea edi, [esi + 0x8f12]
xor ebx, ebx
nop
nop
nop
nop
mov byte [edi], 8
inc edi
mov eax, ebx
and eax, 1
xor ebx, 1
lea ebx, [ebx + eax*2]
cmp ebx, 0x90
jb 0x407490
cmp ebx, 0xff
ja 0x4074cf
mov eax, 0x100
sub eax, ebx
push eax
push 9
push edi
call fcn.00409050
add esp, 0xc
sub edi, ebx
add edi, 0x100
mov ebx, 0x100
mov eax, 0x118
sub eax, ebx
push eax
push 7
push edi
call fcn.00409050
add esp, 0xc
sub edi, ebx
mov dword [edi + 0x11c], 0x8080808
mov dword [edi + 0x118], 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 + 0x164]
push 0x84
push 0
push eax
call fcn.00409050
add esp, 0xc
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esi + eax + 0x8f12]
inc dword [esp + ecx*4 + 0x164]
movzx ecx, byte [esi + eax + 0x8f13]
inc dword [esp + ecx*4 + 0x164]
movzx ecx, byte [esi + eax + 0x8f14]
inc dword [esp + ecx*4 + 0x164]
movzx ecx, byte [esi + eax + 0x8f15]
inc dword [esp + ecx*4 + 0x164]
add eax, 4
cmp eax, 0x120
jne 0x407570
mov dword [esp + 0x28], 0
mov 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
add eax, dword [esp + 0x198]
add eax, eax
mov dword [esp + 0x5c], eax
add eax, dword [esp + 0x19c]
add eax, eax
mov dword [esp + 0x60], eax
xor eax, eax
jmp 0x407694
mov word [esi + eax*2 + 0x8852], bx
inc eax
cmp eax, 0x120
je 0x407712
movzx edx, byte [esi + eax + 0x8f12]
test edx, edx
je 0x407688
mov edi, dword [esp + edx*4 + 0x24]
lea ebx, [edi + 1]
mov dword [esp + edx*4 + 0x24], ebx
mov ebp, edx
and ebp, 3
xor ebx, ebx
cmp dl, 4
jb 0x4076ef
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 0x4076c0
test ebp, ebp
je 0x407680
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 0x407700
jmp 0x407680
push 0x84
push 0
lea eax, [esp + 0x16c]
push eax
call fcn.00409050
add esp, 0xc
xor eax, eax
nop
nop
nop
nop
nop
movzx ecx, byte [esi + eax + 0x9032]
inc dword [esp + ecx*4 + 0x164]
movzx ecx, byte [esi + eax + 0x9033]
inc dword [esp + ecx*4 + 0x164]
movzx ecx, byte [esi + eax + 0x9034]
inc dword [esp + ecx*4 + 0x164]
movzx ecx, byte [esi + eax + 0x9035]
inc dword [esp + ecx*4 + 0x164]
add eax, 4
cmp eax, 0x20
jne 0x407730
mov dword [esp + 0x28], 0
mov 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
add eax, dword [esp + 0x198]
add eax, eax
mov dword [esp + 0x5c], eax
add eax, dword [esp + 0x19c]
add eax, eax
mov dword [esp + 0x60], eax
xor eax, eax
jmp 0x407852
mov word [esi + eax*2 + 0x8a92], di
inc eax
cmp eax, 0x20
je 0x4078d2
movzx ebx, byte [esi + eax + 0x9032]
test ebx, ebx
je 0x407848
mov ecx, dword [esp + ebx*4 + 0x24]
lea edx, [ecx + 1]
mov dword [esp + ebx*4 + 0x24], edx
mov edx, ebx
and edx, 3
xor edi, edi
cmp bl, 4
jb 0x4078bb
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 0x407880
test edx, edx
je 0x407840
nop
mov ebx, ecx
and ebx, 1
lea edi, [ebx + edi*2]
shr ecx, 1
dec edx
jne 0x4078c0
jmp 0x407840
mov ecx, dword [esi + 0x44]
mov ebx, dword [esi + 0x48]
bts ebx, ecx
mov dword [esi + 0x48], ebx
add ecx, 2
mov dword [esi + 0x44], ecx
cmp ecx, 8
jae 0x407905
jmp 0x40823d
shr ebx, 8
mov dword [esi + 0x48], ebx
add ecx, 0xfffffff8
mov dword [esi + 0x44], ecx
cmp ecx, 7
jbe 0x40823d
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x4078f0
lea ecx, [eax + 1]
mov dword [esi + 0x30], ecx
mov byte [eax], bl
mov ecx, dword [esi + 0x44]
mov ebx, dword [esi + 0x48]
jmp 0x4078f0
mov word [esi + 0x8392], 1
mov ecx, esi
xor edx, edx
push 0
push 0xf
push 0x120
call fcn.004085a0
add esp, 0xc
mov ecx, esi
mov edx, 1
push 0
push 0xf
push 0x20
call fcn.004085a0
add esp, 0xc
lea eax, [esi + 0x8f12]
mov ecx, 0x902f
nop
nop
nop
nop
nop
lea ebx, [ecx - 0x8f11]
cmp byte [esi + ecx], 0
jne 0x40798f
cmp ebx, 0x103
jb 0x40798a
lea ebx, [ecx - 0x8f12]
mov edx, ebx
and edx, 0xfffffffe
cmp byte [eax + edx], 0
jne 0x40798f
add ecx, 0xfffffffe
jmp 0x407960
mov ebx, 0x101
mov edi, 0x1e
cmp byte [esi + 0x904f], 0
jne 0x407b72
mov edi, 0x1d
cmp byte [esi + 0x904e], 0
jne 0x407b72
mov edi, 0x1c
cmp byte [esi + 0x904d], 0
jne 0x407b72
mov edi, 0x1b
cmp byte [esi + 0x904c], 0
jne 0x407b72
mov edi, 0x1a
cmp byte [esi + 0x904b], 0
jne 0x407b72
mov edi, 0x19
cmp byte [esi + 0x904a], 0
jne 0x407b72
mov edi, 0x18
cmp byte [esi + 0x9049], 0
jne 0x407b72
mov edi, 0x17
cmp byte [esi + 0x9048], 0
jne 0x407b72
mov edi, 0x16
cmp byte [esi + 0x9047], 0
jne 0x407b72
mov edi, 0x15
cmp byte [esi + 0x9046], 0
jne 0x407b72
mov edi, 0x14
cmp byte [esi + 0x9045], 0
jne 0x407b72
mov edi, 0x13
cmp byte [esi + 0x9044], 0
jne 0x407b72
mov edi, 0x12
cmp byte [esi + 0x9043], 0
jne 0x407b72
mov edi, 0x11
cmp byte [esi + 0x9042], 0
jne 0x407b72
mov edi, 0x10
cmp byte [esi + 0x9041], 0
jne 0x407b72
mov edi, 0xf
cmp byte [esi + 0x9040], 0
jne 0x407b72
mov edi, 0xe
cmp byte [esi + 0x903f], 0
jne 0x407b72
mov edi, 0xd
cmp byte [esi + 0x903e], 0
jne 0x407b72
mov edi, 0xc
cmp byte [esi + 0x903d], 0
jne 0x407b72
mov edi, 0xb
cmp byte [esi + 0x903c], 0
jne 0x407b72
mov edi, 0xa
cmp byte [esi + 0x903b], 0
jne 0x407b72
mov edi, 9
cmp byte [esi + 0x903a], 0
jne 0x407b72
mov edi, 8
cmp byte [esi + 0x9039], 0
jne 0x407b72
mov edi, 7
cmp byte [esi + 0x9038], 0
jne 0x407b72
mov edi, 6
cmp byte [esi + 0x9037], 0
jne 0x407b72
mov edi, 5
cmp byte [esi + 0x9036], 0
jne 0x407b72
mov edi, 4
cmp byte [esi + 0x9035], 0
jne 0x407b72
mov edi, 3
cmp byte [esi + 0x9034], 0
jne 0x407b72
cmp byte [esi + 0x9033], 1
mov edi, 2
sbb edi, 0
lea ecx, [esp + 0x164]
push ebx
push eax
push ecx
call fcn.00408fe0
add esp, 0xc
lea eax, [esp + ebx]
add eax, 0x164
lea ecx, [esi + 0x9032]
push edi
push ecx
push eax
call fcn.00408fe0
add esp, 0xc
mov eax, edi
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 dword [esp + 0x20], ebx
add eax, ebx
mov dword [esp + 0xc], eax
je 0x407e3f
mov dword [esp + 0x14], edi
lea eax, [esi + 0x8612]
mov dword [esp + 0x1c], eax
lea eax, [esi + 0x8636]
mov dword [esp + 0x10], eax
lea eax, [esi + 0x8634]
mov dword [esp + 0x18], eax
mov dl, 0xff
xor edi, edi
xor ebp, ebp
xor ecx, ecx
xor ebx, ebx
jmp 0x407c7e
inc word [esi + 0x8632]
mov byte [esp + ebp + 0x24], 0x10
mov eax, ebx
xor eax, 0xfc
and ebx, 0x7c
lea eax, [eax + ebx*2]
inc al
mov byte [esp + ebp + 0x25], al
add ebp, 2
inc word [esi + edx*2 + 0x8612]
mov byte [esp + ebp + 0x24], dl
inc ebp
xor ebx, ebx
xor ecx, ecx
inc edi
cmp dword [esp + 0xc], edi
je 0x407e1c
mov eax, edx
movzx edx, byte [esp + edi + 0x164]
test edx, edx
je 0x407ce0
test ecx, ecx
je 0x407d5d
mov byte [esp + 7], al
mov dword [esp + 8], ebx
cmp ecx, 2
mov dword [esp], edx
ja 0x407d24
mov edx, dword [esp + 0x1c]
movzx eax, word [edx]
mov ebx, ecx
and ecx, eax
xor eax, ebx
lea eax, [eax + ecx*2]
mov word [edx], ax
lea eax, [esp + ebp]
add eax, 0x24
push ebx
push 0
push eax
call fcn.00409050
mov edx, dword [esp + 0xc]
add esp, 0xc
add ebp, ebx
jmp 0x407d54
test ebx, ebx
je 0x407dd2
cmp ebx, 2
ja 0x407dbc
movzx eax, al
add word [esi + eax*2 + 0x8612], bx
mov dword [esp + 8], ecx
lea ecx, [esp + ebp]
add ecx, 0x24
push ebx
push eax
push ecx
mov dword [esp + 0xc], edx
call fcn.00409050
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
add esp, 0xc
add ebp, ebx
jmp 0x407dd2
mov eax, ecx
mov ecx, dword [esp + 0x18]
mov ebx, eax
cmp eax, 0xb
setb al
jb 0x407d38
mov ecx, dword [esp + 0x10]
mov dl, 0x12
sub dl, al
shl al, 3
add al, bl
inc word [ecx]
mov byte [esp + ebp + 0x24], dl
add al, 0xf5
mov byte [esp + ebp + 0x25], al
add ebp, 2
mov edx, dword [esp]
mov ebx, dword [esp + 8]
movzx eax, byte [esp + 7]
cmp dl, al
jne 0x407d80
lea eax, [ebx + 1]
xor ecx, ecx
cmp eax, 6
je 0x407e01
mov ebx, eax
jmp 0x407c73
test ebx, ebx
je 0x407c62
cmp ebx, 2
ja 0x407c40
movzx eax, al
add word [esi + eax*2 + 0x8612], bx
lea ecx, [esp + ebp]
add ecx, 0x24
push ebx
push eax
push ecx
mov dword [esp + 0xc], edx
call fcn.00409050
mov edx, dword [esp + 0xc]
add esp, 0xc
add ebp, ebx
jmp 0x407c62
inc word [esi + 0x8632]
mov byte [esp + ebp + 0x24], 0x10
add bl, 0xfd
mov byte [esp + ebp + 0x25], bl
add ebp, 2
lea eax, [ecx + 1]
xor ebx, ebx
cmp eax, 0x8a
je 0x407de5
mov ecx, eax
jmp 0x407c73
mov eax, dword [esp + 0x10]
inc word [eax]
mov byte [esp + ebp + 0x24], 0x12
mov al, 0xe
sub al, cl
and al, 0xb
mov cl, 0x80
sub cl, al
mov byte [esp + ebp + 0x25], cl
jmp 0x407e14
inc word [esi + 0x8632]
mov byte [esp + ebp + 0x24], 0x10
add bl, 0xfe
mov byte [esp + ebp + 0x25], bl
add ebp, 2
jmp 0x407c6f
test ebx, ebx
je 0x407e43
cmp ebx, 2
mov edi, dword [esp + 0x14]
ja 0x407e73
add word [esi + edx*2 + 0x8612], bx
lea eax, [esp + ebp]
add eax, 0x24
movzx ecx, dl
push ebx
push ecx
push eax
jmp 0x407e67
xor ebp, ebp
jmp 0x407e9b
test ecx, ecx
mov edi, dword [esp + 0x14]
je 0x407e9b
cmp ecx, 2
ja 0x408549
mov eax, dword [esp + 0x1c]
add word [eax], cx
lea eax, [esp + ebp]
add eax, 0x24
push ecx
push 0
push eax
mov ebx, ecx
call fcn.00409050
add esp, 0xc
add ebp, ebx
jmp 0x407e9b
movzx eax, word [esi + 0x8632]
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
mov word [esi + 0x8632], ax
mov byte [esp + ebp + 0x24], 0x10
add bl, 0xfd
mov byte [esp + ebp + 0x25], bl
add ebp, 2
mov ebx, 2
mov ecx, esi
mov edx, 2
push 0
push 7
push 0x13
call fcn.004085a0
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
jae 0x4080b5
mov edx, dword [esp + 0x20]
mov eax, edx
or eax, 0xfffffefe
and edx, 0xfffffefe
add eax, edx
inc eax
shl eax, cl
or eax, ebx
mov dword [esi + 0x48], eax
lea edx, [ecx + 5]
mov dword [esi + 0x44], edx
cmp ecx, 3
mov dword [esp + 0xc], ebp
jae 0x4080e5
mov ecx, edi
or ecx, 0xfffffffe
and edi, 0x1e
lea ebx, [ecx + edi]
inc ebx
mov ecx, edx
shl ebx, cl
or ebx, eax
mov dword [esi + 0x48], ebx
lea eax, [edx + 5]
mov dword [esi + 0x44], eax
cmp edx, 3
jae 0x408115
mov edi, ebx
mov edx, 0x13
cmp byte [esi + 0x9161], 0
jne 0x40800a
mov edx, 0x12
cmp byte [esi + 0x9153], 0
jne 0x40800a
mov edx, 0x11
cmp byte [esi + 0x9160], 0
jne 0x40800a
mov edx, 0x10
cmp byte [esi + 0x9154], 0
jne 0x40800a
mov edx, 0xf
cmp byte [esi + 0x915f], 0
jne 0x40800a
mov edx, 0xe
cmp byte [esi + 0x9155], 0
jne 0x40800a
mov edx, 0xd
cmp byte [esi + 0x915e], 0
jne 0x40800a
mov edx, 0xc
cmp byte [esi + 0x9156], 0
jne 0x40800a
mov edx, 0xb
cmp byte [esi + 0x915d], 0
jne 0x40800a
mov edx, 0xa
cmp byte [esi + 0x9157], 0
jne 0x40800a
mov edx, 9
cmp byte [esi + 0x915c], 0
jne 0x40800a
mov edx, 8
cmp byte [esi + 0x9158], 0
jne 0x40800a
mov edx, 7
cmp byte [esi + 0x915b], 0
jne 0x40800a
mov edx, 6
cmp byte [esi + 0x9159], 0
jne 0x40800a
xor edx, edx
cmp byte [esi + 0x915a], 0
sete dl
xor edx, 5
lea ebx, [edx - 4]
mov ecx, eax
shl ebx, cl
or ebx, edi
mov dword [esi + 0x48], ebx
lea ecx, [eax + 4]
mov dword [esi + 0x44], ecx
cmp eax, 4
jae 0x408145
xor edi, edi
jmp 0x408039
inc edi
cmp edi, edx
je 0x40815d
mov ebp, edx
mov eax, ecx
mov edx, ebx
movzx ecx, byte [edi + 0x43ef06]
movzx ebx, byte [esi + ecx + 0x9152]
mov ecx, eax
shl ebx, cl
or ebx, edx
mov dword [esi + 0x48], ebx
lea ecx, [eax + 3]
mov dword [esi + 0x44], ecx
mov edx, ebp
cmp eax, 5
jae 0x408081
jmp 0x408030
shr ebx, 8
mov dword [esi + 0x48], ebx
add ecx, 0xfffffff8
mov dword [esi + 0x44], ecx
cmp ecx, 7
jbe 0x408030
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x408070
lea ecx, [eax + 1]
mov dword [esi + 0x30], ecx
mov byte [eax], bl
mov ecx, dword [esi + 0x44]
mov ebx, dword [esi + 0x48]
jmp 0x408070
shr ebx, 8
mov dword [esi + 0x48], ebx
add ecx, 0xfffffff8
mov dword [esi + 0x44], ecx
cmp ecx, 7
jbe 0x407ecf
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x4080a0
lea ecx, [eax + 1]
mov dword [esi + 0x30], ecx
mov byte [eax], bl
mov ecx, dword [esi + 0x44]
mov ebx, dword [esi + 0x48]
jmp 0x4080a0
shr eax, 8
mov dword [esi + 0x48], eax
add edx, 0xfffffff8
mov dword [esi + 0x44], edx
cmp edx, 7
jbe 0x407efd
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x4080d0
lea edx, [ecx + 1]
mov dword [esi + 0x30], edx
mov byte [ecx], al
mov edx, dword [esi + 0x44]
mov eax, dword [esi + 0x48]
jmp 0x4080d0
shr ebx, 8
mov dword [esi + 0x48], ebx
add eax, 0xfffffff8
mov dword [esi + 0x44], eax
cmp eax, 7
jbe 0x407f21
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x408100
lea eax, [ecx + 1]
mov dword [esi + 0x30], eax
mov byte [ecx], bl
mov eax, dword [esi + 0x44]
mov ebx, dword [esi + 0x48]
jmp 0x408100
shr ebx, 8
mov dword [esi + 0x48], ebx
add ecx, 0xfffffff8
mov dword [esi + 0x44], ecx
cmp ecx, 7
jbe 0x408025
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x408130
lea ecx, [eax + 1]
mov dword [esi + 0x30], ecx
mov byte [eax], bl
mov ecx, dword [esi + 0x44]
mov ebx, dword [esi + 0x48]
jmp 0x408130
cmp dword [esp + 0xc], 0
je 0x40823d
xor edx, edx
jmp 0x40817e
mov ebx, eax
mov ecx, edi
cmp edx, dword [esp + 0xc]
jae 0x40823d
mov eax, ecx
mov edi, ebx
movzx ebp, byte [esp + edx + 0x24]
movzx ebx, word [esi + ebp*2 + 0x8cd2]
shl ebx, cl
mov dword [esp], ebp
movzx ecx, byte [esi + ebp + 0x9152]
add ecx, eax
or ebx, edi
mov eax, edx
and eax, 1
xor edx, 1
mov dword [esi + 0x48], ebx
mov dword [esi + 0x44], ecx
cmp ecx, 8
jae 0x4081f1
lea edx, [edx + eax*2]
mov eax, dword [esp]
cmp al, 0x10
jb 0x408174
mov edi, eax
movzx eax, byte [esp + edx + 0x24]
inc edx
movsx edi, byte [edi + 0x44058c]
shl eax, cl
or eax, ebx
mov dword [esi + 0x48], eax
add edi, ecx
mov dword [esi + 0x44], edi
cmp edi, 8
jae 0x408225
jmp 0x408170
shr ebx, 8
mov dword [esi + 0x48], ebx
add ecx, 0xfffffff8
mov dword [esi + 0x44], ecx
cmp ecx, 7
jbe 0x4081b3
mov edi, dword [esi + 0x30]
cmp edi, dword [esi + 0x34]
jae 0x4081e0
lea ecx, [edi + 1]
mov dword [esi + 0x30], ecx
mov byte [edi], bl
mov ecx, dword [esi + 0x44]
mov ebx, dword [esi + 0x48]
jmp 0x4081e0
shr eax, 8
mov dword [esi + 0x48], eax
add edi, 0xfffffff8
mov dword [esi + 0x44], edi
cmp edi, 7
jbe 0x408170
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x408210
lea edi, [ecx + 1]
mov dword [esi + 0x30], edi
mov byte [ecx], al
mov edi, dword [esi + 0x44]
mov eax, dword [esi + 0x48]
jmp 0x408210
lea edi, [esi + 0x9272]
cmp edi, dword [esi + 0x28]
jae 0x4084dd
mov edx, 1
jmp 0x408270
mov edx, dword [esp]
shr edx, 1
mov ecx, eax
cmp edi, dword [esi + 0x28]
jae 0x4084df
cmp edx, 1
jne 0x40827f
movzx edx, byte [edi]
inc edi
or edx, 0x100
mov dword [esp], edx
test dl, 1
jne 0x4082f0
movzx eax, byte [edi]
inc edi
movzx edx, word [esi + eax*2 + 0x8852]
movzx eax, byte [esi + eax + 0x8f12]
shl edx, cl
or ebx, edx
mov dword [esi + 0x48], ebx
add eax, ecx
mov dword [esi + 0x44], eax
cmp eax, 8
jb 0x408260
mov edx, dword [esp]
jmp 0x4082d1
shr ebx, 8
mov dword [esi + 0x48], ebx
add eax, 0xfffffff8
mov dword [esi + 0x44], eax
cmp eax, 7
jbe 0x408263
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x4082c0
lea eax, [ecx + 1]
mov dword [esi + 0x30], eax
mov byte [ecx], bl
mov eax, dword [esi + 0x44]
mov ebx, dword [esi + 0x48]
jmp 0x4082c0
movzx eax, byte [edi]
movzx edx, word [eax + eax + 0x43ed06]
mov ebp, edi
movzx edi, word [esi + edx*2 + 0x8852]
movzx edx, byte [esi + edx + 0x8f12]
add edx, ecx
shl edi, cl
movzx ecx, byte [ebp + 1]
mov dword [esp + 0xc], ebp
movzx ebp, byte [ebp + 2]
or ebx, edi
mov dword [esp + 8], ebp
shl ebp, 8
mov dword [esi + 0x48], ebx
mov dword [esi + 0x44], edx
cmp edx, 8
jae 0x408391
or ebp, ecx
movzx edi, byte [eax + 0x43ef60]
and eax, dword [edi*4 + 0x43ef1c]
mov ecx, edx
shl eax, cl
or eax, ebx
mov dword [esi + 0x48], eax
add edx, edi
mov dword [esi + 0x44], edx
cmp edx, 8
jae 0x4083ca
cmp ebp, 0x200
jb 0x4083f0
mov edi, dword [esp + 8]
lea ecx, [edi + 0x43ec86]
lea edi, [edi + 0x43f260]
jmp 0x4083fc
shr ebx, 8
mov dword [esi + 0x48], ebx
add edx, 0xfffffff8
mov dword [esi + 0x44], edx
cmp edx, 7
jbe 0x408331
mov edi, dword [esi + 0x30]
cmp edi, dword [esi + 0x34]
jae 0x408380
lea edx, [edi + 1]
mov dword [esi + 0x30], edx
mov byte [edi], bl
mov edx, dword [esi + 0x44]
mov ebx, dword [esi + 0x48]
jmp 0x408380
shr eax, 8
mov dword [esi + 0x48], eax
mov ecx, edx
xor ecx, 0xfffffff7
and edx, 0xfffffff7
lea edx, [ecx + edx*2]
inc edx
mov dword [esi + 0x44], edx
cmp edx, 7
jbe 0x408354
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x4083b0
lea edx, [ecx + 1]
mov dword [esi + 0x30], edx
mov byte [ecx], al
mov edx, dword [esi + 0x44]
mov eax, dword [esi + 0x48]
jmp 0x4083b0
lea ecx, [ebp + 0x43ea86]
lea edi, [ebp + 0x43f060]
mov dword [esp + 8], edi
movzx edi, byte [ecx]
movzx ebx, word [esi + edi*2 + 0x8a92]
mov ecx, edx
shl ebx, cl
or ebx, eax
movzx eax, byte [esi + edi + 0x9032]
add eax, edx
mov ecx, dword [esp + 8]
movzx edx, byte [ecx]
mov dword [esi + 0x48], ebx
mov dword [esi + 0x44], eax
cmp eax, 8
jb 0x408480
mov edi, dword [esp + 0xc]
jmp 0x408459
shr ebx, 8
mov dword [esi + 0x48], ebx
mov ecx, eax
or ecx, 0xfffffff7
and eax, 0xfffffff7
add eax, ecx
inc eax
mov dword [esi + 0x44], eax
cmp eax, 7
jbe 0x408484
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x408440
lea eax, [ecx + 1]
mov dword [esi + 0x30], eax
mov byte [ecx], bl
mov eax, dword [esi + 0x44]
mov ebx, dword [esi + 0x48]
jmp 0x408440
mov edi, dword [esp + 0xc]
and ebp, dword [edx*4 + 0x43ef1c]
mov ecx, eax
shl ebp, cl
add edi, 3
or ebp, ebx
mov ebx, ebp
mov dword [esi + 0x48], ebp
add eax, edx
mov dword [esi + 0x44], eax
cmp eax, 8
jb 0x408260
mov edx, dword [esp]
jmp 0x4084c5
shr ebx, 8
mov dword [esi + 0x48], ebx
add eax, 0xfffffff8
mov dword [esi + 0x44], eax
cmp eax, 7
jbe 0x408263
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x4084b0
lea eax, [ecx + 1]
mov dword [esi + 0x30], eax
mov byte [ecx], bl
mov eax, dword [esi + 0x44]
mov ebx, dword [esi + 0x48]
jmp 0x4084b0
mov eax, ecx
movzx edx, word [esi + 0x8a52]
movzx edi, byte [esi + 0x9012]
mov ecx, eax
shl edx, cl
or edx, ebx
mov dword [esi + 0x48], edx
add edi, eax
mov dword [esi + 0x44], edi
cmp edi, 8
jae 0x408531
mov ecx, dword [esi + 0x30]
xor eax, eax
cmp ecx, dword [esi + 0x34]
setb al
add esp, 0x2a4
pop esi
pop edi
pop ebx
pop ebp
ret
shr edx, 8
mov dword [esi + 0x48], edx
add edi, 0xfffffff8
mov dword [esi + 0x44], edi
cmp edi, 7
jbe 0x408500
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x408520
lea ecx, [eax + 1]
mov dword [esi + 0x30], ecx
mov byte [eax], dl
mov edi, dword [esi + 0x44]
mov edx, dword [esi + 0x48]
jmp 0x408520
cmp ecx, 0xa
mov ebx, ecx
ja 0x408577
mov eax, dword [esp + 0x18]
inc word [eax]
mov eax, ebp
mov byte [esp + ebp + 0x24], 0x11
and ebp, 1
xor eax, 1
lea edx, [eax + ebp*2]
add bl, 0xfd
lea ebp, [eax + ebp*2]
inc ebp
mov byte [esp + edx + 0x24], bl
jmp 0x407e9b
mov edx, dword [esp + 0x10]
movzx eax, word [edx]
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
mov word [edx], ax
mov byte [esp + ebp + 0x24], 0x12
add bl, 0xf5
jmp 0x407e94