Function at 0x46f7c4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff4b0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xb44], ebx
mov dword [ebp - 0xb4c], ebx
mov dword [ebp - 0xb48], ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x470740
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x11], 1
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 8]
call fcn.00409af8
test al, al
je 0x470722
xor edx, edx
push ebp
push 0x470718
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x47065e
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x40
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x41a33c]
call fcn.0041eb00
mov dword [ebp - 0x18], eax
push 0
push 0
mov eax, dword [ebp - 0x18]
call fcn.0041e66c
lea edx, [ebp - 0x28]
mov ecx, 4
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x28]
and eax, 0xffff
cmp eax, 0x4b53
je 0x46f895
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00404778
jmp 0x470722
mov eax, dword [ebp - 0x18]
call fcn.0046eefc
mov ebx, eax
test ebx, ebx
jge 0x46f8b5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00404778
jmp 0x470722
lea edx, [ebp - 0xdc]
mov ecx, 4
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
call dword [esi + 0xc]
lea edx, [ebp - 0xd8]
mov ecx, 2
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
call dword [esi + 0xc]
lea edx, [ebp - 0xd6]
mov ecx, 2
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
call dword [esi + 0xc]
lea edx, [ebp - 0xd4]
mov ecx, 2
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
call dword [esi + 0xc]
lea edx, [ebp - 0xd2]
mov ecx, 2
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
call dword [esi + 0xc]
lea edx, [ebp - 0xd0]
mov ecx, 4
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
call dword [esi + 0xc]
lea edx, [ebp - 0xcc]
mov ecx, 4
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
call dword [esi + 0xc]
lea edx, [ebp - 0xc8]
mov ecx, 2
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
call dword [esi + 0xc]
cmp word [ebp - 0xc8], 0
jbe 0x46f96a
movzx edx, word [ebp - 0xc8]
mov cx, 1
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
call dword [esi + 0x14]
xor ecx, ecx
mov edx, dword [ebp - 0xcc]
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
call dword [esi + 0x14]
mov byte [ebp - 0x29], 0
jmp 0x46fb35
lea edx, [ebp - 0x10c]
mov ecx, 4
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
call dword [esi + 0xc]
lea edx, [ebp - 0x108]
mov ecx, 2
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
call dword [esi + 0xc]
lea edx, [ebp - 0x106]
mov ecx, 2
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
call dword [esi + 0xc]
lea edx, [ebp - 0x104]
mov ecx, 2
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
call dword [esi + 0xc]
lea edx, [ebp - 0x102]
mov ecx, 2
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
call dword [esi + 0xc]
lea edx, [ebp - 0x100]
mov ecx, 2
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
call dword [esi + 0xc]
lea edx, [ebp - 0xfe]
mov ecx, 2
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
call dword [esi + 0xc]
lea edx, [ebp - 0xfc]
mov ecx, 4
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
call dword [esi + 0xc]
lea edx, [ebp - 0xf8]
mov ecx, 4
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
call dword [esi + 0xc]
lea edx, [ebp - 0xf4]
mov ecx, 4
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
call dword [esi + 0xc]
lea edx, [ebp - 0xf0]
mov ecx, 2
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
call dword [esi + 0xc]
lea edx, [ebp - 0xee]
mov ecx, 2
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
call dword [esi + 0xc]
lea edx, [ebp - 0xec]
mov ecx, 2
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
call dword [esi + 0xc]
lea edx, [ebp - 0xea]
mov ecx, 2
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
call dword [esi + 0xc]
lea edx, [ebp - 0xe8]
mov ecx, 2
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
call dword [esi + 0xc]
lea edx, [ebp - 0xe4]
mov ecx, 4
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
call dword [esi + 0xc]
lea edx, [ebp - 0xe0]
mov ecx, 4
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
call dword [esi + 0xc]
movzx ecx, word [ebp - 0xf0]
lea edx, [ebp - 0x230]
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
call dword [esi + 0xc]
movzx eax, word [ebp - 0xf0]
mov byte [ebp + eax - 0x230], 0
lea edx, [ebp - 0xb48]
lea eax, [ebp - 0x230]
call fcn.0040a064
mov eax, dword [ebp - 0xb48]
lea edx, [ebp - 0xb44]
call fcn.004090d0
mov eax, dword [ebp - 0xb44]
push eax
lea edx, [ebp - 0xb4c]
mov eax, dword [ebp - 0xc]
call fcn.004090d0
mov edx, dword [ebp - 0xb4c]
pop eax
call fcn.00405148
jne 0x46fb35
mov byte [ebp - 0x29], 1
jmp 0x46fb5d
mov eax, dword [ebp - 0x18]
call fcn.0041e64c
push edx
push eax
mov eax, ebx
cdq
cmp edx, dword [esp + 4]
jne 0x46fb55
cmp eax, dword [esp]
pop edx
pop eax
ja 0x46f983
jmp 0x46fb5d
pop edx
pop eax
jg 0x46f983
cmp byte [ebp - 0x29], 0
jne 0x46fb75
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00404778
jmp 0x470722
push 0xffff
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x41a33c]
call fcn.0041eb00
mov dword [ebp - 0x1c], eax
xor ecx, ecx
mov edx, dword [ebp - 0xe0]
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0x14]
lea edx, [ebp - 0x12c]
mov ecx, 4
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea edx, [ebp - 0x128]
mov ecx, 2
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea edx, [ebp - 0x126]
mov ecx, 2
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea edx, [ebp - 0x124]
mov ecx, 2
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea edx, [ebp - 0x122]
mov ecx, 2
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea edx, [ebp - 0x120]
mov ecx, 2
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea edx, [ebp - 0x11c]
mov ecx, 4
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea edx, [ebp - 0x118]
mov ecx, 4
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea edx, [ebp - 0x114]
mov ecx, 4
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea edx, [ebp - 0x110]
mov ecx, 2
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea edx, [ebp - 0x10e]
mov ecx, 2
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0xc]
movzx edx, word [ebp - 0x110]
mov cx, 1
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0x14]
cmp word [ebp - 0x10e], 0
jbe 0x46fc9d
movzx edx, word [ebp - 0x10e]
mov cx, 1
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0x14]
test byte [ebp - 0x104], 1
je 0x46ffa9
cmp dword [ebp + 8], 0
jne 0x46fcc6
mov byte [ebp - 0x11], 2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00404778
jmp 0x470722
mov dword [ebp - 0xbc], 0x12345678
mov dword [ebp - 0xc0], 0x23456789
mov dword [ebp - 0xc4], 0x34567890
mov dword [ebp - 0xb8], 0x8088405
lea edx, [ebp - 0x734]
mov ecx, 0xc
mov eax, dword [ebp - 0x18]
call fcn.0041e878
mov eax, dword [ebp + 8]
call fcn.00404ffc
mov edi, eax
test edi, edi
jle 0x46fda8
mov ebx, 1
mov eax, dword [ebp + 8]
mov al, byte [eax + ebx - 1]
xor al, byte [ebp - 0xbc]
and eax, 0xff
mov eax, dword [eax*4 + 0x4cf268]
mov edx, dword [ebp - 0xbc]
shr edx, 8
and edx, 0xffffff
xor eax, edx
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xbc]
and eax, 0xff
add dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0xc0]
imul dword [ebp - 0xb8]
inc eax
mov dword [ebp - 0xc0], eax
mov al, byte [ebp - 0xc4]
mov edx, dword [ebp - 0xc0]
shr edx, 0x18
xor al, dl
and eax, 0xff
mov eax, dword [eax*4 + 0x4cf268]
mov edx, dword [ebp - 0xc4]
shr edx, 8
and edx, 0xffffff
xor eax, edx
mov dword [ebp - 0xc4], eax
inc ebx
dec edi
jne 0x46fd18
mov ebx, 0xc
lea edi, [ebp - 0x734]
lea esi, [ebp - 0x740]
mov eax, dword [ebp - 0xc4]
and eax, 0xffff
or eax, 2
mov edx, eax
xor edx, 1
imul edx, eax
shr edx, 8
xor dl, byte [edi]
mov byte [esi], dl
mov al, byte [ebp - 0xbc]
xor al, byte [esi]
and eax, 0xff
mov eax, dword [eax*4 + 0x4cf268]
mov edx, dword [ebp - 0xbc]
shr edx, 8
and edx, 0xffffff
xor eax, edx
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xbc]
and eax, 0xff
add dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0xc0]
imul dword [ebp - 0xb8]
inc eax
mov dword [ebp - 0xc0], eax
mov al, byte [ebp - 0xc4]
mov edx, dword [ebp - 0xc0]
shr edx, 0x18
xor al, dl
and eax, 0xff
mov eax, dword [eax*4 + 0x4cf268]
mov edx, dword [ebp - 0xc4]
shr edx, 8
and edx, 0xffffff
xor eax, edx
mov dword [ebp - 0xc4], eax
inc esi
inc edi
dec ebx
jne 0x46fdb9
mov ax, word [ebp - 0x104]
and ax, 8
cmp ax, 8
jne 0x46fe82
movzx eax, word [ebp - 0x100]
shl eax, 0x10
mov dword [ebp - 4], eax
jmp 0x46fe8b
mov eax, dword [ebp - 0xfc]
mov dword [ebp - 4], eax
mov al, byte [ebp - 1]
cmp al, byte [ebp - 0x735]
je 0x46feac
mov byte [ebp - 0x11], 2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00404778
jmp 0x470722
mov dl, 1
mov eax, dword [0x41a42c]
call fcn.00403efc
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0xb40]
xor ecx, ecx
mov edx, 0x400
call fcn.004035d4
lea edx, [ebp - 0xb40]
mov ecx, 0x400
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov dword [ebp - 0xac], eax
cmp dword [ebp - 0xac], 0x400
jne 0x46ff55
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0xc4]
push eax
mov eax, dword [ebp - 0xb8]
push eax
lea ecx, [ebp - 0xbc]
lea eax, [ebp - 0xb40]
mov edx, 0x400
call fcn.0046f238
lea edx, [ebp - 0xb40]
mov ecx, 0x400
mov eax, dword [ebp - 0x20]
call fcn.0041e8b0
lea edx, [ebp - 0xb40]
mov ecx, 0x400
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov dword [ebp - 0xac], eax
cmp dword [ebp - 0xac], 0x400
je 0x46fef2
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0xc4]
push eax
mov eax, dword [ebp - 0xb8]
push eax
lea ecx, [ebp - 0xbc]
lea eax, [ebp - 0xb40]
mov edx, dword [ebp - 0xac]
call fcn.0046f238
lea edx, [ebp - 0xb40]
mov ecx, dword [ebp - 0xac]
mov eax, dword [ebp - 0x20]
mov ebx, dword [eax]
call dword [ebx + 0x10]
push 0
push 0
mov eax, dword [ebp - 0x20]
call fcn.0041e66c
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
jmp 0x46ffaf
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov eax, 0x4000
call fcn.00402b80
mov dword [ebp - 0x30], eax
mov eax, 0x10102
call fcn.00402b80
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x34]
add eax, 0x10000
mov dword [ebp - 0x50], eax
xor eax, eax
mov dword [ebp - 0x38], eax
xor eax, eax
mov dword [ebp - 0x40], eax
xor eax, eax
mov dword [ebp - 0x48], eax
xor eax, eax
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x48], 0
jne 0x470024
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x38]
cmp eax, 4
jge 0x470011
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x38]
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0x24]
call fcn.0046efa8
mov eax, dword [ebp - 0x38]
mov eax, dword [eax]
mov dword [ebp - 0x44], eax
add dword [ebp - 0x38], 4
mov dword [ebp - 0x48], 0x20
mov eax, dword [ebp - 0x44]
and al, 1
mov byte [ebp - 0x2a], al
shr dword [ebp - 0x44], 1
dec dword [ebp - 0x48]
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x44]
lea edx, [ebp - 0x48]
mov eax, 2
call fcn.0046f1e0
test eax, eax
jne 0x470202
mov ecx, dword [ebp - 0x48]
and ecx, 0x80000007
jns 0x47005e
dec ecx
or ecx, 0xfffffff8
inc ecx
shr dword [ebp - 0x44], cl
mov eax, dword [ebp - 0x48]
and eax, 0x80000007
jns 0x470070
dec eax
or eax, 0xfffffff8
inc eax
sub dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x30]
push eax
lea edx, [ebp - 0xa8]
mov ecx, 4
mov eax, dword [ebp - 0x24]
call fcn.0046f060
movzx eax, word [ebp - 0xa8]
mov dword [ebp - 0xac], eax
mov eax, 0x4000
call fcn.00402b80
mov dword [ebp - 0xb0], eax
cmp dword [ebp - 0xac], 0
je 0x4701f2
cmp dword [ebp - 0xac], 0x4000
jle 0x4700d7
mov edi, 0x4000
jmp 0x4700dd
mov edi, dword [ebp - 0xac]
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x30]
push eax
mov edx, dword [ebp - 0xb0]
mov ecx, edi
mov eax, dword [ebp - 0x24]
call fcn.0046f060
mov esi, edi
mov eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0x50]
jb 0x470147
mov edx, dword [ebp - 0x34]
mov ecx, 0x8000
mov eax, dword [ebp - 0x1c]
call fcn.0041e8b0
mov eax, dword [ebp - 0x34]
add eax, 0x8000
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x4c]
sub ecx, dword [ebp - 0x9c]
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x9c]
call fcn.00402dac
sub dword [ebp - 0x4c], 0x8000
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0xb4], eax
mov ebx, dword [ebp - 0x50]
sub ebx, dword [ebp - 0x4c]
cmp esi, ebx
jge 0x47015f
mov ebx, esi
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0xb4]
mov ecx, ebx
call fcn.00402dac
add dword [ebp - 0x4c], ebx
sub esi, ebx
test esi, esi
jle 0x4701df
add dword [ebp - 0xb4], ebx
mov edx, dword [ebp - 0x34]
mov ecx, 0x8000
mov eax, dword [ebp - 0x1c]
call fcn.0041e8b0
mov eax, dword [ebp - 0x34]
add eax, 0x8000
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x4c]
sub ecx, dword [ebp - 0x9c]
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x9c]
call fcn.00402dac
sub dword [ebp - 0x4c], 0x8000
mov ebx, dword [ebp - 0x50]
sub ebx, dword [ebp - 0x4c]
cmp esi, ebx
jge 0x4701c6
mov ebx, esi
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0xb4]
mov ecx, ebx
call fcn.00402dac
add dword [ebp - 0x4c], ebx
sub esi, ebx
test esi, esi
jg 0x470178
sub dword [ebp - 0xac], edi
cmp dword [ebp - 0xac], 0
jne 0x4700c4
mov eax, dword [ebp - 0xb0]
call fcn.00402bb0
jmp 0x47062d
cmp eax, 2
jne 0x4705ae
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x44]
lea edx, [ebp - 0x48]
mov eax, 5
call fcn.0046f1e0
add eax, 0x101
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x44]
lea edx, [ebp - 0x48]
mov eax, 5
call fcn.0046f1e0
inc eax
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x44]
lea edx, [ebp - 0x48]
mov eax, 4
call fcn.0046f1e0
add eax, 4
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x54], 0x11e
jg 0x470268
cmp dword [ebp - 0x58], 0x1e
jle 0x47027a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00404778
jmp 0x470722
lea eax, [ebp - 0x728]
xor ecx, ecx
mov edx, 0x4c
call fcn.004035d4
mov edi, dword [ebp - 0x5c]
dec edi
test edi, edi
jl 0x4702bd
inc edi
mov esi, 0x4cf158
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x44]
lea edx, [ebp - 0x48]
mov eax, 3
call fcn.0046f1e0
xor edx, edx
mov dl, byte [esi]
mov dword [ebp + edx*4 - 0x728], eax
inc esi
dec edi
jne 0x47029a
mov ecx, 7
mov dl, 1
mov eax, dword [0x46ef4c]
call fcn.004708f8
mov dword [ebp - 0x60], eax
push 0
push 0x13
mov byte [ebp - 0xb50], 0
lea eax, [ebp - 0xb50]
push eax
push 0
push 0xffff
lea edx, [ebp - 0x728]
mov ecx, 0x13d
mov eax, dword [ebp - 0x60]
call fcn.00470754
lea eax, [ebp - 0x728]
xor ecx, ecx
mov edx, 0x4f8
call fcn.004035d4
xor esi, esi
jmp 0x47049e
mov eax, dword [ebp - 0x60]
mov eax, dword [eax + 0xc]
add eax, 7
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x48]
mov edx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x24]
call fcn.0046f138
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x60]
mov eax, dword [eax + 0xc]
mov eax, dword [eax*4 + 0x4cf0d8]
and eax, dword [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x60]
call fcn.0047091c
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
and eax, 0xffff
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x7c]
shr eax, 0x10
and eax, 0xff
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x80], 0xf
jg 0x4703ab
mov eax, dword [ebp - 0x80]
mov dword [ebp + esi*4 - 0x728], eax
inc esi
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x44]
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x84]
call fcn.0046f1ac
jmp 0x47049e
cmp dword [ebp - 0x80], 0x10
jne 0x47041a
mov ecx, dword [ebp - 0x84]
mov eax, dword [ebp - 0x74]
shr eax, cl
and eax, 3
add eax, 3
mov dword [ebp - 0x88], eax
mov eax, dword [ebp + esi*4 - 0x72c]
mov dword [ebp - 0x80], eax
mov edi, dword [ebp - 0x88]
dec edi
test edi, edi
jl 0x4703f1
inc edi
xor ebx, ebx
lea eax, [ebx + esi]
mov edx, dword [ebp - 0x80]
mov dword [ebp + eax*4 - 0x728], edx
inc ebx
dec edi
jne 0x4703e0
add esi, dword [ebp - 0x88]
mov eax, dword [ebp - 0x84]
add eax, 2
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x44]
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x70]
call fcn.0046f1ac
jmp 0x47049e
cmp dword [ebp - 0x80], 0x11
jne 0x47045d
mov ecx, dword [ebp - 0x84]
mov eax, dword [ebp - 0x74]
shr eax, cl
and eax, 7
add eax, 3
mov dword [ebp - 0x88], eax
add esi, dword [ebp - 0x88]
mov eax, dword [ebp - 0x84]
add eax, 3
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x44]
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x70]
call fcn.0046f1ac
jmp 0x47049e
cmp dword [ebp - 0x80], 0x12
jne 0x47049e
mov ecx, dword [ebp - 0x84]
mov eax, dword [ebp - 0x74]
shr eax, cl
and eax, 0x7f
add eax, 0xb
mov dword [ebp - 0x88], eax
add esi, dword [ebp - 0x88]
mov eax, dword [ebp - 0x84]
add eax, 7
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x44]
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x70]
call fcn.0046f1ac
mov eax, dword [ebp - 0x54]
add eax, dword [ebp - 0x58]
cmp esi, eax
jl 0x470316
mov ecx, 0xf
mov dl, 1
mov eax, dword [0x46ef4c]
call fcn.004708f8
mov dword [ebp - 0x64], eax
push 0
mov eax, dword [ebp - 0x54]
push eax
push 0x4cf1ac
push 0x1e
push 0x101
lea edx, [ebp - 0x728]
mov ecx, 0x13d
mov eax, dword [ebp - 0x64]
call fcn.00470754
mov ecx, 0xf
mov dl, 1
mov eax, dword [0x46ef4c]
call fcn.004708f8
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x58]
push eax
push 0x4cf1cc
push 0x1f
push 0
lea edx, [ebp - 0x728]
mov ecx, 0x13d
mov eax, dword [ebp - 0x68]
call fcn.00470754
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0xa4]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x64]
call fcn.0046f3dc
mov eax, dword [ebp - 0x60]
call fcn.00403f2c
mov eax, dword [ebp - 0x64]
call fcn.00403f2c
mov eax, dword [ebp - 0x68]
call fcn.00403f2c
jmp 0x47062d
dec eax
jne 0x47062d
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0xa4]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [0x4cf66c]
mov eax, dword [0x4cf668]
call fcn.0046f3dc
cmp byte [ebp - 0x2a], 0
je 0x46ffee
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x4c]
je 0x470650
mov ecx, dword [ebp - 0x4c]
sub ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x1c]
call fcn.0041e8b0
mov byte [ebp - 0x11], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47066c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x470722
cmp dword [ebp - 0x20], 0
je 0x470687
mov eax, dword [ebp - 0x20]
call fcn.00403f2c
cmp dword [ebp - 0x1c], 0
je 0x4706d3
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x4706aa
cmp eax, 0
jne 0x4706aa
cmp byte [ebp - 0x11], 0
jne 0x4706aa
mov byte [ebp - 0x11], 1
jmp 0x4706cb
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 0xf4]
cdq
cmp edx, dword [esp + 4]
jne 0x4706c3
cmp eax, dword [esp]
pop edx
pop eax
je 0x4706cb
mov byte [ebp - 0x11], 2
mov eax, dword [ebp - 0x1c]
call fcn.00403f2c
cmp dword [ebp - 0x18], 0
je 0x4706e1
mov eax, dword [ebp - 0x18]
call fcn.00403f2c
cmp dword [ebp - 0x30], 0
je 0x4706ef
mov eax, dword [ebp - 0x30]
call fcn.00402bb0
cmp dword [ebp - 0x34], 0
je 0x4706fd
mov eax, dword [ebp - 0x34]
call fcn.00402bb0
cmp byte [ebp - 0x11], 0
je 0x470717
mov eax, dword [ebp - 0x10]
call fcn.00409af8
test al, al
je 0x470717
mov eax, dword [ebp - 0x10]
call fcn.00409c28
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x470747
lea eax, [ebp - 0xb4c]
mov edx, 3
call fcn.00404d60
ret