Function at 0x497ff8
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x45
push 0
push 0
dec ecx
jne 0x498000
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x499aa6
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x154]
mov eax, dword [ebp - 0x28]
call fcn.00471c3c
mov edx, dword [ebp - 0x154]
mov eax, dword [ebp - 0x24]
add eax, 0x38
call fcn.00405528
mov eax, dword [ebp - 0x24]
cmp byte [eax + 0x188], 0
jne 0x499a73
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x44]
cmp eax, dword [ebp - 0x28]
jne 0x499a73
mov eax, dword [ebp - 0x24]
add eax, 0x3c
mov edx, dword [ebp - 0x24]
mov edx, dword [edx + 0x38]
call fcn.00405528
mov eax, dword [ebp - 0x24]
add eax, 0x38
call fcn.0040525c
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x3c], 0
je 0x499a7b
jmp 0x499a5d
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + 0x3c]
mov eax, 0x499abc
call fcn.00405838
test eax, eax
jle 0x499a7b
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x158]
push eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x3c]
mov cl, 0x21
mov dl, 0x23
call fcn.004917a0
mov edx, dword [ebp - 0x158]
mov eax, dword [ebp - 0x24]
add eax, 0x3c
call fcn.004052b0
cmp dword [ebp - 4], 0
je 0x499a7b
mov eax, dword [ebp - 4]
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0
je 0x4980fb
mov eax, dword [ebp - 0x98]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x16
jl 0x499a5d
lea eax, [ebp - 0xc]
push eax
mov ecx, 0x16
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00405754
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x2c]
sub ecx, 0x16
mov edx, 0x17
mov eax, dword [ebp - 4]
call fcn.00405754
lea edx, [ebp - 0xa8]
mov eax, dword [ebp - 0xc]
call fcn.004848d4
movzx eax, word [ebp - 0xa0]
sub ax, 0x64
je 0x498164
dec ax
je 0x49964e
jmp 0x499a5d
mov eax, dword [ebp - 0x24]
cmp byte [eax + 0x198], 0
je 0x49822f
push 0x499ac8
mov eax, dword [ebp - 0x24]
push dword [eax + 0x40]
push 0x499ae4
lea edx, [ebp - 0x160]
movzx eax, word [ebp - 0x9e]
call fcn.0040bbf0
push dword [ebp - 0x160]
push 0x499af4
lea edx, [ebp - 0x164]
movzx eax, word [ebp - 0x9c]
call fcn.0040bbf0
push dword [ebp - 0x164]
push 0x499b04
lea edx, [ebp - 0x168]
movzx eax, word [ebp - 0x9a]
call fcn.0040bbf0
push dword [ebp - 0x168]
push 0x499b18
movzx eax, word [ebp - 0x9c]
movzx edx, word [ebp - 0x9a]
shl edx, 0x10
or eax, edx
lea edx, [ebp - 0x16c]
call fcn.0040bbf0
push dword [ebp - 0x16c]
push 0x499b28
push dword [ebp - 8]
lea eax, [ebp - 0x15c]
mov edx, 0xc
call fcn.004055f0
mov eax, dword [ebp - 0x15c]
call fcn.0049148c
mov eax, dword [ebp - 0x28]
call fcn.00470e6c
jmp 0x499a7b
mov eax, dword [ebp - 0x24]
cmp byte [eax + 0x188], 0
jne 0x499586
movzx eax, word [ebp - 0x9c]
movzx edx, word [ebp - 0x9a]
shl edx, 0x10
or eax, edx
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0
jne 0x498320
push 0x499b38
mov eax, dword [ebp - 0x24]
push dword [eax + 0x40]
push 0x499ae4
lea edx, [ebp - 0x174]
movzx eax, word [ebp - 0x9e]
call fcn.0040bbf0
push dword [ebp - 0x174]
push 0x499af4
lea edx, [ebp - 0x178]
movzx eax, word [ebp - 0x9c]
call fcn.0040bbf0
push dword [ebp - 0x178]
push 0x499b04
lea edx, [ebp - 0x17c]
movzx eax, word [ebp - 0x9a]
call fcn.0040bbf0
push dword [ebp - 0x17c]
push 0x499b4c
movzx eax, word [ebp - 0x9c]
movzx edx, word [ebp - 0x9a]
shl edx, 0x10
or eax, edx
lea edx, [ebp - 0x180]
call fcn.0040bbf0
push dword [ebp - 0x180]
push 0x499b28
push dword [ebp - 8]
lea eax, [ebp - 0x170]
mov edx, 0xc
call fcn.004055f0
mov eax, dword [ebp - 0x170]
call fcn.0049148c
mov eax, dword [ebp - 0x28]
call fcn.00470e6c
jmp 0x499a7b
cmp word [ebp - 0x9e], 0x100
jae 0x4993b4
cmp dword [ebp - 0x90], 0
jbe 0x4993b4
cmp dword [ebp - 8], 0
je 0x4993b4
mov dl, 1
mov eax, dword [0x4169c0]
call fcn.00404328
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], 0x4cb358
mov dword [ebp - 0x50], 0x7a1e
xor eax, eax
mov dword [ebp - 0x54], eax
xor eax, eax
mov dword [ebp - 0x58], eax
xor eax, eax
push ebp
push 0x49839a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x58]
push eax
xor ecx, ecx
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x4c]
call fcn.0047db60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4983b7
cmp dword [ebp - 0x54], 0
je 0x4983df
mov edx, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x48]
mov ebx, dword [eax]
call dword [ebx + 0x10]
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x48]
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp - 0x54]
call fcn.004030d8
mov eax, dword [ebp - 0x48]
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x4983f6
cmp eax, 0
jbe 0x4993a7
jmp 0x4983fc
jle 0x4993a7
push dword [ebp - 0xa4]
push dword [ebp - 0xa8]
call fcn.0047cc24
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jle 0x498f56
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x30]
call fcn.0040597c
lea eax, [ebp - 0x20]
call fcn.0040574c
mov edx, eax
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 8]
call fcn.00484a00
mov eax, dword [ebp - 0x48]
mov eax, dword [eax + 4]
mov dword [ebp - 0x5c], eax
movzx eax, word [ebp - 0x9e]
imul eax, eax, 0x25
mov edx, dword [ebp - 0x5c]
lea eax, [edx + eax*4]
lea edx, [ebp - 0x128]
mov ecx, 0x80
call fcn.0040331c
movzx eax, word [ebp - 0x9e]
imul eax, eax, 0x25
mov edx, dword [ebp - 0x5c]
lea eax, [edx + eax*4 + 0x80]
lea edx, [ebp - 0x13c]
mov ecx, 0x14
call fcn.0040331c
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x30]
call fcn.0040597c
lea eax, [ebp - 0x20]
call fcn.0040574c
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0x18]
call fcn.0040574c
mov dword [ebp - 0x88], eax
xor eax, eax
push ebp
push 0x498f3f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x8c]
mov ecx, 0x14
cdq
idiv ecx
test eax, eax
jle 0x498a26
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x7c], 1
mov edx, dword [ebp - 0x88]
mov eax, dword [ebp - 0x84]
mov ecx, 0x14
call fcn.0040331c
lea edx, [ebp - 0x150]
mov eax, dword [ebp - 0x84]
mov ecx, 0x14
call fcn.0040331c
mov eax, dword [ebp - 0x88]
mov eax, dword [eax]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x88]
add eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x80], eax
mov ebx, dword [ebp - 0x80]
shr ebx, 4
xor ebx, dword [ebp - 0x6c]
and ebx, 0xf0f0f0f
xor dword [ebp - 0x6c], ebx
shl ebx, 4
xor dword [ebp - 0x80], ebx
mov ebx, dword [ebp - 0x6c]
shr ebx, 0x10
xor ebx, dword [ebp - 0x80]
and ebx, 0xffff
xor dword [ebp - 0x80], ebx
shl ebx, 0x10
xor dword [ebp - 0x6c], ebx
mov ebx, dword [ebp - 0x80]
shr ebx, 2
xor ebx, dword [ebp - 0x6c]
and ebx, 0x33333333
xor dword [ebp - 0x6c], ebx
add ebx, ebx
add ebx, ebx
xor dword [ebp - 0x80], ebx
mov ebx, dword [ebp - 0x6c]
shr ebx, 8
xor ebx, dword [ebp - 0x80]
and ebx, 0xff00ff
xor dword [ebp - 0x80], ebx
shl ebx, 8
xor dword [ebp - 0x6c], ebx
mov ebx, dword [ebp - 0x80]
shr ebx, 1
xor ebx, dword [ebp - 0x6c]
and ebx, 0x66666666
xor dword [ebp - 0x6c], ebx
add ebx, ebx
xor dword [ebp - 0x80], ebx
mov eax, dword [ebp - 0x6c]
shr eax, 0x1d
mov edx, dword [ebp - 0x6c]
add edx, edx
add edx, edx
add edx, edx
or eax, edx
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x80]
shr eax, 0x1d
mov edx, dword [ebp - 0x80]
add edx, edx
add edx, edx
add edx, edx
or eax, edx
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x78], 0x1e
cmp dword [ebp - 0x78], 0
jle 0x49891b
mov eax, dword [ebp - 0x78]
mov esi, dword [ebp + eax*4 - 0x128]
xor esi, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x78]
mov ebx, dword [ebp + eax*4 - 0x124]
xor ebx, dword [ebp - 0x6c]
mov eax, ebx
shr eax, 4
shl ebx, 0x1c
or eax, ebx
mov ebx, eax
mov eax, esi
shr eax, 2
and eax, 0x3f
mov edx, dword [0x4d3628]
mov eax, dword [edx + eax*4]
xor eax, dword [ebp - 0x80]
mov edx, esi
shr edx, 0xa
and edx, 0x3f
mov ecx, dword [0x4d3628]
xor eax, dword [ecx + edx*4 + 0x200]
mov edx, esi
shr edx, 0x12
and edx, 0x3f
mov ecx, dword [0x4d3628]
xor eax, dword [ecx + edx*4 + 0x400]
shr esi, 0x1a
and esi, 0x3f
mov edx, dword [0x4d3628]
xor eax, dword [edx + esi*4 + 0x600]
mov edx, ebx
shr edx, 2
and edx, 0x3f
mov ecx, dword [0x4d3628]
xor eax, dword [ecx + edx*4 + 0x100]
mov edx, ebx
shr edx, 0xa
and edx, 0x3f
mov ecx, dword [0x4d3628]
xor eax, dword [ecx + edx*4 + 0x300]
mov edx, ebx
shr edx, 0x12
and edx, 0x3f
mov ecx, dword [0x4d3628]
xor eax, dword [ecx + edx*4 + 0x500]
shr ebx, 0x1a
and ebx, 0x3f
mov edx, dword [0x4d3628]
xor eax, dword [edx + ebx*4 + 0x700]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x78]
mov esi, dword [ebp + eax*4 - 0x130]
xor esi, dword [ebp - 0x80]
mov eax, dword [ebp - 0x78]
mov ebx, dword [ebp + eax*4 - 0x12c]
xor ebx, dword [ebp - 0x80]
mov eax, ebx
shr eax, 4
shl ebx, 0x1c
or eax, ebx
mov ebx, eax
mov eax, esi
shr eax, 2
and eax, 0x3f
mov edx, dword [0x4d3628]
mov eax, dword [edx + eax*4]
xor eax, dword [ebp - 0x6c]
mov edx, esi
shr edx, 0xa
and edx, 0x3f
mov ecx, dword [0x4d3628]
xor eax, dword [ecx + edx*4 + 0x200]
mov edx, esi
shr edx, 0x12
and edx, 0x3f
mov ecx, dword [0x4d3628]
xor eax, dword [ecx + edx*4 + 0x400]
shr esi, 0x1a
and esi, 0x3f
mov edx, dword [0x4d3628]
xor eax, dword [edx + esi*4 + 0x600]
mov edx, ebx
shr edx, 2
and edx, 0x3f
mov ecx, dword [0x4d3628]
xor eax, dword [ecx + edx*4 + 0x100]
mov edx, ebx
shr edx, 0xa
and edx, 0x3f
mov ecx, dword [0x4d3628]
xor eax, dword [ecx + edx*4 + 0x300]
mov edx, ebx
shr edx, 0x12
and edx, 0x3f
mov ecx, dword [0x4d3628]
xor eax, dword [ecx + edx*4 + 0x500]
shr ebx, 0x1a
and ebx, 0x3f
mov edx, dword [0x4d3628]
xor eax, dword [edx + ebx*4 + 0x700]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x78]
mov esi, dword [ebp + eax*4 - 0x138]
xor esi, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x78]
mov ebx, dword [ebp + eax*4 - 0x134]
xor ebx, dword [ebp - 0x6c]
mov eax, ebx
shr eax, 4
shl ebx, 0x1c
or eax, ebx
mov ebx, eax
mov eax, esi
shr eax, 2
and eax, 0x3f
mov edx, dword [0x4d3628]
mov eax, dword [edx + eax*4]
xor eax, dword [ebp - 0x80]
mov edx, esi
shr edx, 0xa
and edx, 0x3f
mov ecx, dword [0x4d3628]
xor eax, dword [ecx + edx*4 + 0x200]
mov edx, esi
shr edx, 0x12
and edx, 0x3f
mov ecx, dword [0x4d3628]
xor eax, dword [ecx + edx*4 + 0x400]
shr esi, 0x1a
and esi, 0x3f
mov edx, dword [0x4d3628]
xor eax, dword [edx + esi*4 + 0x600]
mov edx, ebx
shr edx, 2
and edx, 0x3f
mov ecx, dword [0x4d3628]
xor eax, dword [ecx + edx*4 + 0x100]
mov edx, ebx
shr edx, 0xa
and edx, 0x3f
mov ecx, dword [0x4d3628]
xor eax, dword [ecx + edx*4 + 0x300]
mov edx, ebx
shr edx, 0x12
and edx, 0x3f
mov ecx, dword [0x4d3628]
xor eax, dword [ecx + edx*4 + 0x500]
shr ebx, 0x1a
and ebx, 0x3f
mov edx, dword [0x4d3628]
xor eax, dword [edx + ebx*4 + 0x700]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x78]
mov esi, dword [ebp + eax*4 - 0x140]
xor esi, dword [ebp - 0x80]
mov eax, dword [ebp - 0x78]
mov ebx, dword [ebp + eax*4 - 0x13c]
xor ebx, dword [ebp - 0x80]
mov eax, ebx
shr eax, 4
shl ebx, 0x1c
or eax, ebx
mov ebx, eax
mov eax, esi
shr eax, 2
and eax, 0x3f
mov edx, dword [0x4d3628]
mov eax, dword [edx + eax*4]
xor eax, dword [ebp - 0x6c]
mov edx, esi
shr edx, 0xa
and edx, 0x3f
mov ecx, dword [0x4d3628]
xor eax, dword [ecx + edx*4 + 0x200]
mov edx, esi
shr edx, 0x12
and edx, 0x3f
mov ecx, dword [0x4d3628]
xor eax, dword [ecx + edx*4 + 0x400]
shr esi, 0x1a
and esi, 0x3f
mov edx, dword [0x4d3628]
xor eax, dword [edx + esi*4 + 0x600]
mov edx, ebx
shr edx, 2
and edx, 0x3f
mov ecx, dword [0x4d3628]
xor eax, dword [ecx + edx*4 + 0x100]
mov edx, ebx
shr edx, 0xa
and edx, 0x3f
mov ecx, dword [0x4d3628]
xor eax, dword [ecx + edx*4 + 0x300]
mov edx, ebx
shr edx, 0x12
and edx, 0x3f
mov ecx, dword [0x4d3628]
xor eax, dword [ecx + edx*4 + 0x500]
shr ebx, 0x1a
and ebx, 0x3f
mov edx, dword [0x4d3628]
xor eax, dword [edx + ebx*4 + 0x700]
mov dword [ebp - 0x6c], eax
sub dword [ebp - 0x78], 8
cmp dword [ebp - 0x78], 0
jg 0x4985dd
mov eax, dword [ebp - 0x6c]
shr eax, 3
mov edx, dword [ebp - 0x6c]
shl edx, 0x1d
or eax, edx
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x80]
shr eax, 3
mov edx, dword [ebp - 0x80]
shl edx, 0x1d
or eax, edx
mov dword [ebp - 0x80], eax
mov ebx, dword [ebp - 0x6c]
shr ebx, 1
xor ebx, dword [ebp - 0x80]
and ebx, 0x66666666
xor dword [ebp - 0x80], ebx
add ebx, ebx
xor dword [ebp - 0x6c], ebx
mov ebx, dword [ebp - 0x80]
shr ebx, 8
xor ebx, dword [ebp - 0x6c]
and ebx, 0xff00ff
xor dword [ebp - 0x6c], ebx
shl ebx, 8
xor dword [ebp - 0x80], ebx
mov ebx, dword [ebp - 0x6c]
shr ebx, 2
xor ebx, dword [ebp - 0x80]
and ebx, 0x33333333
xor dword [ebp - 0x80], ebx
add ebx, ebx
add ebx, ebx
xor dword [ebp - 0x6c], ebx
mov ebx, dword [ebp - 0x80]
shr ebx, 0x10
xor ebx, dword [ebp - 0x6c]
and ebx, 0xffff
xor dword [ebp - 0x6c], ebx
shl ebx, 0x10
xor dword [ebp - 0x80], ebx
mov ebx, dword [ebp - 0x6c]
shr ebx, 4
xor ebx, dword [ebp - 0x80]
and ebx, 0xf0f0f0f
xor dword [ebp - 0x80], ebx
shl ebx, 4
xor dword [ebp - 0x6c], ebx
mov eax, dword [ebp - 0x88]
mov edx, dword [ebp - 0x80]
mov dword [eax], edx
mov eax, dword [ebp - 0x88]
add eax, 4
mov edx, dword [ebp - 0x6c]
mov dword [eax], edx
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 0x88]
mov ecx, 0x14
call fcn.00484af4
lea edx, [ebp - 0x13c]
lea eax, [ebp - 0x150]
mov ecx, 0x14
call fcn.0040331c
mov eax, dword [ebp - 0x84]
add eax, 0x14
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x88]
add eax, 0x14
mov dword [ebp - 0x88], eax
inc dword [ebp - 0x7c]
dec dword [ebp - 0x94]
jne 0x4984e8
mov eax, dword [ebp - 0x8c]
mov ecx, 0x14
cdq
idiv ecx
test edx, edx
je 0x498f35
lea eax, [ebp - 0x13c]
mov eax, dword [eax]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x13c]
add eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x80], eax
mov ebx, dword [ebp - 0x80]
shr ebx, 4
xor ebx, dword [ebp - 0x6c]
and ebx, 0xf0f0f0f
xor dword [ebp - 0x6c], ebx
shl ebx, 4
xor dword [ebp - 0x80], ebx
mov ebx, dword [ebp - 0x6c]
shr ebx, 0x10
xor ebx, dword [ebp - 0x80]
and ebx, 0xffff
xor dword [ebp - 0x80], ebx
shl ebx, 0x10
xor dword [ebp - 0x6c], ebx
mov ebx, dword [ebp - 0x80]
shr ebx, 2
xor ebx, dword [ebp - 0x6c]
and ebx, 0x33333333
xor dword [ebp - 0x6c], ebx
add ebx, ebx
add ebx, ebx
xor dword [ebp - 0x80], ebx
mov ebx, dword [ebp - 0x6c]
shr ebx, 8
xor ebx, dword [ebp - 0x80]
and ebx, 0xff00ff
xor dword [ebp - 0x80], ebx
shl ebx, 8
xor dword [ebp - 0x6c], ebx
mov ebx, dword [ebp - 0x80]
shr ebx, 1
xor ebx, dword [ebp - 0x6c]
and ebx, 0x66666666
xor dword [ebp - 0x6c], ebx
add ebx, ebx
xor dword [ebp - 0x80], ebx
mov eax, dword [ebp - 0x6c]
shr eax, 0x1d
mov edx, dword [ebp - 0x6c]
add edx, edx
add edx, edx
add edx, edx
or eax, edx
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x80]
shr eax, 0x1d
mov edx, dword [ebp - 0x80]
add edx, edx
add edx, edx
add edx, edx
or eax, edx
mov dword [ebp - 0x80], eax
xor eax, eax
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0x20
jge 0x498e41
mov eax, dword [ebp - 0x78]
mov esi, dword [ebp + eax*4 - 0x128]
xor esi, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x78]
mov ebx, dword [ebp + eax*4 - 0x124]
xor ebx, dword [ebp - 0x6c]
mov eax, ebx
shr eax, 4
shl ebx, 0x1c
or eax, ebx
mov ebx, eax
mov eax, esi
shr eax, 2
and eax, 0x3f
mov edx, dword [0x4d3628]
mov eax, dword [edx + eax*4]
xor eax, dword [ebp - 0x80]
mov edx, esi
shr edx, 0xa
and edx, 0x3f
mov ecx, dword [0x4d3628]
xor eax, dword [ecx + edx*4 + 0x200]
mov edx, esi
shr edx, 0x12
and edx, 0x3f
mov ecx, dword [0x4d3628]
xor eax, dword [ecx + edx*4 + 0x400]
shr esi, 0x1a
and esi, 0x3f
mov edx, dword [0x4d3628]
xor eax, dword [edx + esi*4 + 0x600]
mov edx, ebx
shr edx, 2
and edx, 0x3f
mov ecx, dword [0x4d3628]
xor eax, dword [ecx + edx*4 + 0x100]
mov edx, ebx
shr edx, 0xa
and edx, 0x3f
mov ecx, dword [0x4d3628]
xor eax, dword [ecx + edx*4 + 0x300]
mov edx, ebx
shr edx, 0x12
and edx, 0x3f
mov ecx, dword [0x4d3628]
xor eax, dword [ecx + edx*4 + 0x500]
shr ebx, 0x1a
and ebx, 0x3f
mov edx, dword [0x4d3628]
xor eax, dword [edx + ebx*4 + 0x700]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x78]
mov esi, dword [ebp + eax*4 - 0x120]
xor esi, dword [ebp - 0x80]
mov eax, dword [ebp - 0x78]
mov ebx, dword [ebp + eax*4 - 0x11c]
xor ebx, dword [ebp - 0x80]
mov eax, ebx
shr eax, 4
shl ebx, 0x1c
or eax, ebx
mov ebx, eax
mov eax, esi
shr eax, 2
and eax, 0x3f
mov edx, dword [0x4d3628]
mov eax, dword [edx + eax*4]
xor eax, dword [ebp - 0x6c]
mov edx, esi
shr edx, 0xa
and edx, 0x3f
mov ecx, dword [0x4d3628]
xor eax, dword [ecx + edx*4 + 0x200]
mov edx, esi
shr edx, 0x12
and edx, 0x3f
mov ecx, dword [0x4d3628]
xor eax, dword [ecx + edx*4 + 0x400]
shr esi, 0x1a
and esi, 0x3f
mov edx, dword [0x4d3628]
xor eax, dword [edx + esi*4 + 0x600]
mov edx, ebx
shr edx, 2
and edx, 0x3f
mov ecx, dword [0x4d3628]
xor eax, dword [ecx + edx*4 + 0x100]
mov edx, ebx
shr edx, 0xa
and edx, 0x3f
mov ecx, dword [0x4d3628]
xor eax, dword [ecx + edx*4 + 0x300]
mov edx, ebx
shr edx, 0x12
and edx, 0x3f
mov ecx, dword [0x4d3628]
xor eax, dword [ecx + edx*4 + 0x500]
shr ebx, 0x1a
and ebx, 0x3f
mov edx, dword [0x4d3628]
xor eax, dword [edx + ebx*4 + 0x700]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x78]
mov esi, dword [ebp + eax*4 - 0x118]
xor esi, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x78]
mov ebx, dword [ebp + eax*4 - 0x114]
xor ebx, dword [ebp - 0x6c]
mov eax, ebx
shr eax, 4
shl ebx, 0x1c
or eax, ebx
mov ebx, eax
mov eax, esi
shr eax, 2
and eax, 0x3f
mov edx, dword [0x4d3628]
mov eax, dword [edx + eax*4]
xor eax, dword [ebp - 0x80]
mov edx, esi
shr edx, 0xa
and edx, 0x3f
mov ecx, dword [0x4d3628]
xor eax, dword [ecx + edx*4 + 0x200]
mov edx, esi
shr edx, 0x12
and edx, 0x3f
mov ecx, dword [0x4d3628]
xor eax, dword [ecx + edx*4 + 0x400]
shr esi, 0x1a
and esi, 0x3f
mov edx, dword [0x4d3628]
xor eax, dword [edx + esi*4 + 0x600]
mov edx, ebx
shr edx, 2
and edx, 0x3f
mov ecx, dword [0x4d3628]
xor eax, dword [ecx + edx*4 + 0x100]
mov edx, ebx
shr edx, 0xa
and edx, 0x3f
mov ecx, dword [0x4d3628]
xor eax, dword [ecx + edx*4 + 0x300]
mov edx, ebx
shr edx, 0x12
and edx, 0x3f
mov ecx, dword [0x4d3628]
xor eax, dword [ecx + edx*4 + 0x500]
shr ebx, 0x1a
and ebx, 0x3f
mov edx, dword [0x4d3628]
xor eax, dword [edx + ebx*4 + 0x700]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x78]
mov esi, dword [ebp + eax*4 - 0x110]
xor esi, dword [ebp - 0x80]
mov eax, dword [ebp - 0x78]
mov ebx, dword [ebp + eax*4 - 0x10c]
xor ebx, dword [ebp - 0x80]
mov eax, ebx
shr eax, 4
shl ebx, 0x1c
or eax, ebx
mov ebx, eax
mov eax, esi
shr eax, 2
and eax, 0x3f
mov edx, dword [0x4d3628]
mov eax, dword [edx + eax*4]
xor eax, dword [ebp - 0x6c]
mov edx, esi
shr edx, 0xa
and edx, 0x3f
mov ecx, dword [0x4d3628]
xor eax, dword [ecx + edx*4 + 0x200]
mov edx, esi
shr edx, 0x12
and edx, 0x3f
mov ecx, dword [0x4d3628]
xor eax, dword [ecx + edx*4 + 0x400]
shr esi, 0x1a
and esi, 0x3f
mov edx, dword [0x4d3628]
xor eax, dword [edx + esi*4 + 0x600]
mov edx, ebx
shr edx, 2
and edx, 0x3f
mov ecx, dword [0x4d3628]
xor eax, dword [ecx + edx*4 + 0x100]
mov edx, ebx
shr edx, 0xa
and edx, 0x3f
mov ecx, dword [0x4d3628]
xor eax, dword [ecx + edx*4 + 0x300]
mov edx, ebx
shr edx, 0x12
and edx, 0x3f
mov ecx, dword [0x4d3628]
xor eax, dword [ecx + edx*4 + 0x500]
shr ebx, 0x1a
and ebx, 0x3f
mov edx, dword [0x4d3628]
xor eax, dword [edx + ebx*4 + 0x700]
mov dword [ebp - 0x6c], eax
add dword [ebp - 0x78], 8
cmp dword [ebp - 0x78], 0x20
jl 0x498b03
mov eax, dword [ebp - 0x6c]
shr eax, 3
mov edx, dword [ebp - 0x6c]
shl edx, 0x1d
or eax, edx
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x80]
shr eax, 3
mov edx, dword [ebp - 0x80]
shl edx, 0x1d
or eax, edx
mov dword [ebp - 0x80], eax
mov ebx, dword [ebp - 0x6c]
shr ebx, 1
xor ebx, dword [ebp - 0x80]
and ebx, 0x66666666
xor dword [ebp - 0x80], ebx
add ebx, ebx
xor dword [ebp - 0x6c], ebx
mov ebx, dword [ebp - 0x80]
shr ebx, 8
xor ebx, dword [ebp - 0x6c]
and ebx, 0xff00ff
xor dword [ebp - 0x6c], ebx
shl ebx, 8
xor dword [ebp - 0x80], ebx
mov ebx, dword [ebp - 0x6c]
shr ebx, 2
xor ebx, dword [ebp - 0x80]
and ebx, 0x33333333
xor dword [ebp - 0x80], ebx
add ebx, ebx
add ebx, ebx
xor dword [ebp - 0x6c], ebx
mov ebx, dword [ebp - 0x80]
shr ebx, 0x10
xor ebx, dword [ebp - 0x6c]
and ebx, 0xffff
xor dword [ebp - 0x6c], ebx
shl ebx, 0x10
xor dword [ebp - 0x80], ebx
mov ebx, dword [ebp - 0x6c]
shr ebx, 4
xor ebx, dword [ebp - 0x80]
and ebx, 0xf0f0f0f
xor dword [ebp - 0x80], ebx
shl ebx, 4
xor dword [ebp - 0x6c], ebx
lea eax, [ebp - 0x13c]
mov edx, dword [ebp - 0x80]
mov dword [eax], edx
lea eax, [ebp - 0x13c]
add eax, 4
mov edx, dword [ebp - 0x6c]
mov dword [eax], edx
mov eax, dword [ebp - 0x8c]
mov ecx, 0x14
cdq
idiv ecx
mov ecx, edx
mov edx, dword [ebp - 0x88]
mov eax, dword [ebp - 0x84]
call fcn.0040331c
mov eax, dword [ebp - 0x8c]
mov ecx, 0x14
cdq
idiv ecx
mov ecx, edx
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 0x88]
call fcn.00484af4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x498f56
cmp dword [ebp - 0x30], 0
jle 0x4993a7
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x18]
call fcn.0040574c
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x90], 0x455b6cdd
xor dword [ebp - 0x90], 0xffffffff
cmp dword [ebp - 0x30], 8
jl 0x49910d
mov eax, dword [ebp - 0x40]
movzx eax, byte [eax]
xor eax, dword [ebp - 0x90]
and eax, 0xff
mov edx, dword [0x4d3800]
mov eax, dword [edx + eax*4]
mov edx, dword [ebp - 0x90]
shr edx, 8
xor eax, edx
mov dword [ebp - 0x90], eax
inc dword [ebp - 0x40]
mov eax, dword [ebp - 0x40]
movzx eax, byte [eax]
xor eax, dword [ebp - 0x90]
and eax, 0xff
mov edx, dword [0x4d3800]
mov eax, dword [edx + eax*4]
mov edx, dword [ebp - 0x90]
shr edx, 8
xor eax, edx
mov dword [ebp - 0x90], eax
inc dword [ebp - 0x40]
mov eax, dword [ebp - 0x40]
movzx eax, byte [eax]
xor eax, dword [ebp - 0x90]
and eax, 0xff
mov edx, dword [0x4d3800]
mov eax, dword [edx + eax*4]
mov edx, dword [ebp - 0x90]
shr edx, 8
xor eax, edx
mov dword [ebp - 0x90], eax
inc dword [ebp - 0x40]
mov eax, dword [ebp - 0x40]
movzx eax, byte [eax]
xor eax, dword [ebp - 0x90]
and eax, 0xff
mov edx, dword [0x4d3800]
mov eax, dword [edx + eax*4]
mov edx, dword [ebp - 0x90]
shr edx, 8
xor eax, edx
mov dword [ebp - 0x90], eax
inc dword [ebp - 0x40]
mov eax, dword [ebp - 0x40]
movzx eax, byte [eax]
xor eax, dword [ebp - 0x90]
and eax, 0xff
mov edx, dword [0x4d3800]
mov eax, dword [edx + eax*4]
mov edx, dword [ebp - 0x90]
shr edx, 8
xor eax, edx
mov dword [ebp - 0x90], eax
inc dword [ebp - 0x40]
mov eax, dword [ebp - 0x40]
movzx eax, byte [eax]
xor eax, dword [ebp - 0x90]
and eax, 0xff
mov edx, dword [0x4d3800]
mov eax, dword [edx + eax*4]
mov edx, dword [ebp - 0x90]
shr edx, 8
xor eax, edx
mov dword [ebp - 0x90], eax
inc dword [ebp - 0x40]
mov eax, dword [ebp - 0x40]
movzx eax, byte [eax]
xor eax, dword [ebp - 0x90]
and eax, 0xff
mov edx, dword [0x4d3800]
mov eax, dword [edx + eax*4]
mov edx, dword [ebp - 0x90]
shr edx, 8
xor eax, edx
mov dword [ebp - 0x90], eax
inc dword [ebp - 0x40]
mov eax, dword [ebp - 0x40]
movzx eax, byte [eax]
xor eax, dword [ebp - 0x90]
and eax, 0xff
mov edx, dword [0x4d3800]
mov eax, dword [edx + eax*4]
mov edx, dword [ebp - 0x90]
shr edx, 8
xor eax, edx
mov dword [ebp - 0x90], eax
inc dword [ebp - 0x40]
sub dword [ebp - 0x30], 8
cmp dword [ebp - 0x30], 8
jge 0x498f8f
cmp dword [ebp - 0x30], 0
je 0x49914a
mov eax, dword [ebp - 0x40]
movzx eax, byte [eax]
xor eax, dword [ebp - 0x90]
and eax, 0xff
mov edx, dword [0x4d3800]
mov eax, dword [edx + eax*4]
mov edx, dword [ebp - 0x90]
shr edx, 8
xor eax, edx
mov dword [ebp - 0x90], eax
inc dword [ebp - 0x40]
dec dword [ebp - 0x30]
cmp dword [ebp - 0x30], 0
jne 0x499113
xor dword [ebp - 0x90], 0xffffffff
movzx eax, word [ebp - 0x9c]
movzx edx, word [ebp - 0x9a]
shl edx, 0x10
or eax, edx
cmp eax, dword [ebp - 0x90]
jne 0x499302
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x8c]
call fcn.0040597c
xor ecx, ecx
mov dl, 1
mov eax, dword [0x48bf60]
call fcn.0048ce58
mov dword [ebp - 0x60], eax
xor edx, edx
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax]
call dword [ecx + 0x4c]
mov eax, dword [ebp - 0x60]
mov eax, dword [eax + 0x40]
mov edx, 0x499b5c
call fcn.0048cc14
lea edx, [ebp - 0x184]
mov eax, 0x1fc7
call fcn.0040bbf0
mov edx, dword [ebp - 0x184]
mov eax, dword [ebp - 0x60]
mov eax, dword [eax + 0x40]
call fcn.0048ccb0
xor eax, eax
push ebp
push 0x49920d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c]
call fcn.0040574c
push eax
mov eax, dword [ebp - 0x8c]
push eax
lea eax, [ebp - 0x18]
call fcn.0040574c
mov edx, eax
mov ecx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x60]
call fcn.0048cf68
mov dword [ebp - 0x30], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49921c
mov eax, dword [ebp - 0x60]
call fcn.00404358
cmp dword [ebp - 0x30], 0
jle 0x499258
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x30]
call fcn.0040597c
mov edx, dword [0x4d382c]
mov edx, dword [edx]
mov eax, dword [ebp - 0x1c]
call fcn.0040b778
test eax, eax
sete al
mov edx, dword [ebp - 0x24]
mov byte [edx + 0x198], al
jmp 0x4993a7
push 0x499b88
mov eax, dword [ebp - 0x24]
push dword [eax + 0x40]
push 0x499ae4
lea edx, [ebp - 0x18c]
movzx eax, word [ebp - 0x9e]
call fcn.0040bbf0
push dword [ebp - 0x18c]
push 0x499af4
lea edx, [ebp - 0x190]
movzx eax, word [ebp - 0x9c]
call fcn.0040bbf0
push dword [ebp - 0x190]
push 0x499b04
lea edx, [ebp - 0x194]
movzx eax, word [ebp - 0x9a]
call fcn.0040bbf0
push dword [ebp - 0x194]
push 0x499b18
mov eax, dword [ebp - 0x90]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x198]
call fcn.0040bcdc
push dword [ebp - 0x198]
push 0x499ba4
push dword [ebp - 8]
lea eax, [ebp - 0x188]
mov edx, 0xc
call fcn.004055f0
mov eax, dword [ebp - 0x188]
call fcn.0049148c
jmp 0x4993a7
push 0x499bb8
mov eax, dword [ebp - 0x24]
push dword [eax + 0x40]
push 0x499ae4
lea edx, [ebp - 0x1a0]
movzx eax, word [ebp - 0x9e]
call fcn.0040bbf0
push dword [ebp - 0x1a0]
push 0x499af4
lea edx, [ebp - 0x1a4]
movzx eax, word [ebp - 0x9c]
call fcn.0040bbf0
push dword [ebp - 0x1a4]
push 0x499b04
lea edx, [ebp - 0x1a8]
movzx eax, word [ebp - 0x9a]
call fcn.0040bbf0
push dword [ebp - 0x1a8]
push 0x499b18
mov eax, dword [ebp - 0x90]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x1ac]
call fcn.0040bcdc
push dword [ebp - 0x1ac]
push 0x499ba4
push dword [ebp - 8]
lea eax, [ebp - 0x19c]
mov edx, 0xc
call fcn.004055f0
mov eax, dword [ebp - 0x19c]
call fcn.0049148c
mov eax, dword [ebp - 0x48]
call fcn.00404358
jmp 0x499459
push 0x499bd4
mov eax, dword [ebp - 0x24]
push dword [eax + 0x40]
push 0x499ae4
lea edx, [ebp - 0x1b4]
movzx eax, word [ebp - 0x9e]
call fcn.0040bbf0
push dword [ebp - 0x1b4]
push 0x499af4
lea edx, [ebp - 0x1b8]
movzx eax, word [ebp - 0x9c]
call fcn.0040bbf0
push dword [ebp - 0x1b8]
push 0x499b04
lea edx, [ebp - 0x1bc]
movzx eax, word [ebp - 0x9a]
call fcn.0040bbf0
push dword [ebp - 0x1bc]
push 0x499b18
mov eax, dword [ebp - 0x90]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x1c0]
call fcn.0040bcdc
push dword [ebp - 0x1c0]
push 0x499ba4
push dword [ebp - 8]
lea eax, [ebp - 0x1b0]
mov edx, 0xc
call fcn.004055f0
mov eax, dword [ebp - 0x1b0]
call fcn.0049148c
mov dword [ebp - 0x30], 0xe
mov eax, dword [ebp - 0x30]
call fcn.004030bc
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [eax], 0xaa55aa55
mov eax, dword [ebp - 0x3c]
xor edx, edx
mov dword [eax + 0xa], edx
mov eax, dword [ebp - 0x3c]
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x24]
cmp byte [eax + 0x198], 0
je 0x4994a4
mov eax, dword [ebp - 0x3c]
mov word [eax + 8], 0xcc
jmp 0x499562
mov eax, dword [ebp - 0x3c]
mov word [eax + 8], 0xcd
push 0x499bf0
push dword [ebp - 0x1c]
push 0x499c18
mov eax, dword [ebp - 0x24]
push dword [eax + 0x40]
push 0x499ae4
lea edx, [ebp - 0x1c8]
movzx eax, word [ebp - 0x9e]
call fcn.0040bbf0
push dword [ebp - 0x1c8]
push 0x499af4
lea edx, [ebp - 0x1cc]
movzx eax, word [ebp - 0x9c]
call fcn.0040bbf0
push dword [ebp - 0x1cc]
push 0x499b04
lea edx, [ebp - 0x1d0]
movzx eax, word [ebp - 0x9a]
call fcn.0040bbf0
push dword [ebp - 0x1d0]
push 0x499b18
mov eax, dword [ebp - 0x90]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x1d4]
call fcn.0040bcdc
push dword [ebp - 0x1d4]
push 0x499ba4
push dword [ebp - 8]
push 0x499c28
push dword [ebp - 0x1c]
lea eax, [ebp - 0x1c4]
mov edx, 0x10
call fcn.004055f0
mov eax, dword [ebp - 0x1c4]
call fcn.0049148c
mov eax, dword [ebp - 0x30]
push eax
mov edx, dword [0x4d3300]
mov edx, dword [edx]
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x24]
call fcn.00497594
mov eax, dword [ebp - 0x38]
call fcn.004030d8
jmp 0x499a5d
push 0x499c44
mov eax, dword [ebp - 0x24]
push dword [eax + 0x40]
push 0x499ae4
lea edx, [ebp - 0x1dc]
movzx eax, word [ebp - 0x9e]
call fcn.0040bbf0
push dword [ebp - 0x1dc]
push 0x499af4
lea edx, [ebp - 0x1e0]
movzx eax, word [ebp - 0x9c]
call fcn.0040bbf0
push dword [ebp - 0x1e0]
push 0x499b04
lea edx, [ebp - 0x1e4]
movzx eax, word [ebp - 0x9a]
call fcn.0040bbf0
push dword [ebp - 0x1e4]
push 0x499b18
mov eax, dword [ebp - 0x90]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x1e8]
call fcn.0040bcdc
push dword [ebp - 0x1e8]
push 0x499ba4
push dword [ebp - 8]
lea eax, [ebp - 0x1d8]
mov edx, 0xc
call fcn.004055f0
mov eax, dword [ebp - 0x1d8]
call fcn.0049148c
mov eax, dword [0x4d3744]
mov dword [eax], 8
mov eax, dword [ebp - 0x28]
call fcn.00470e6c
mov eax, dword [0x4d3744]
mov dword [eax], 9
jmp 0x499a7b
mov eax, dword [ebp - 0x24]
cmp byte [eax + 0x198], 0
je 0x4999bb
mov eax, 0x118
call fcn.004030bc
mov dword [ebp - 0x34], eax
lea edx, [ebp - 0x1f0]
mov eax, dword [ebp - 8]
call fcn.00484934
mov ecx, dword [ebp - 0x1f0]
mov edx, dword [0x4d3294]
mov edx, dword [edx]
lea eax, [ebp - 0x1ec]
call fcn.00405574
mov edx, dword [ebp - 0x1ec]
mov eax, dword [ebp - 0x34]
add eax, 0x10
mov ecx, 0xff
call fcn.004054f8
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0xa8]
mov dword [eax + 4], edx
movzx eax, word [ebp - 0x9e]
movzx edx, word [ebp - 0x9c]
shl edx, 0x10
or eax, edx
mov edx, dword [ebp - 0x34]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0x34]
movzx edx, byte [ebp - 0x9a]
mov byte [eax], dl
movzx eax, word [ebp - 0x9a]
shr eax, 8
mov edx, dword [ebp - 0x34]
mov byte [edx + 1], al
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x24]
mov dword [eax + 0x114], edx
mov eax, dword [ebp - 0x34]
movzx eax, byte [eax]
sub al, 1
jb 0x49970c
sub al, 2
jb 0x4997d0
jmp 0x499909
mov eax, dword [ebp - 0x34]
movzx eax, byte [eax + 1]
sub al, 1
jb 0x49977a
je 0x49978e
dec al
je 0x4997a2
sub al, 2
jne 0x4997b6
mov eax, dword [0x4d3744]
mov dword [eax], 0x70
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x40]
call fcn.0049134c
mov eax, dword [0x4d3744]
mov dword [eax], 0x71
mov edx, 0x118
mov eax, dword [ebp - 0x34]
call fcn.004030d8
mov eax, dword [0x4d3744]
mov dword [eax], 0x72
mov eax, dword [ebp - 0x28]
call fcn.00470e6c
mov eax, dword [0x4d3744]
mov dword [eax], 0x73
jmp 0x499a7b
mov eax, dword [0x4d32fc]
mov eax, dword [eax]
mov edx, dword [ebp - 0x34]
call fcn.004922c4
jmp 0x499a5d
mov eax, dword [0x4d37bc]
mov eax, dword [eax]
mov edx, dword [ebp - 0x34]
call fcn.004922c4
jmp 0x499a5d
mov eax, dword [0x4d34f0]
mov eax, dword [eax]
mov edx, dword [ebp - 0x34]
call fcn.004922c4
jmp 0x499a5d
mov edx, 0x118
mov eax, dword [ebp - 0x34]
call fcn.004030d8
mov eax, dword [ebp - 0x28]
call fcn.00470e6c
jmp 0x499a7b
lea eax, [ebp - 0x1fc]
mov edx, dword [ebp - 0x34]
add edx, 0x10
call fcn.004054c0
mov eax, dword [ebp - 0x1fc]
lea edx, [ebp - 0x1f8]
call fcn.0040c318
mov eax, dword [ebp - 0x1f8]
lea edx, [ebp - 0x1f4]
call fcn.0040c350
mov eax, dword [ebp - 0x1f4]
lea edx, [ebp - 0x14]
call fcn.0040b56c
mov eax, dword [ebp - 0x14]
mov edx, 0x499c60
call fcn.00405684
jne 0x499834
mov eax, dword [0x4d3300]
mov eax, dword [eax]
mov edx, dword [ebp - 0x34]
call fcn.00495a00
jmp 0x499a5d
mov eax, dword [ebp - 0x14]
mov edx, 0x499c70
call fcn.00405684
jne 0x499857
mov eax, dword [0x4d3304]
mov eax, dword [eax]
mov edx, dword [ebp - 0x34]
call fcn.00492e3c
jmp 0x499a5d
push 0x499c80
mov eax, dword [ebp - 0x24]
push dword [eax + 0x40]
push 0x499c9c
lea edx, [ebp - 0x204]
movzx eax, byte [ebp - 0x9a]
call fcn.0040bbf0
push dword [ebp - 0x204]
push 0x499cb0
movzx eax, word [ebp - 0x9a]
shr eax, 8
movzx eax, al
lea edx, [ebp - 0x208]
call fcn.0040bbf0
push dword [ebp - 0x208]
push 0x499cc8
lea eax, [ebp - 0x20c]
mov edx, dword [ebp - 0x34]
add edx, 0x10
call fcn.004054c0
push dword [ebp - 0x20c]
lea eax, [ebp - 0x200]
mov edx, 8
call fcn.004055f0
mov eax, dword [ebp - 0x200]
call fcn.0049148c
mov edx, 0x118
mov eax, dword [ebp - 0x34]
call fcn.004030d8
mov eax, dword [0x4d3744]
mov dword [eax], 0xa
mov eax, dword [ebp - 0x28]
call fcn.00470e6c
mov eax, dword [0x4d3744]
mov dword [eax], 0xb
jmp 0x499a7b
push 0x499cdc
mov eax, dword [ebp - 0x24]
push dword [eax + 0x40]
push 0x499c9c
lea edx, [ebp - 0x214]
movzx eax, byte [ebp - 0x9a]
call fcn.0040bbf0
push dword [ebp - 0x214]
push 0x499cb0
movzx eax, word [ebp - 0x9a]
shr eax, 8
movzx eax, al
lea edx, [ebp - 0x218]
call fcn.0040bbf0
push dword [ebp - 0x218]
push 0x499cc8
lea eax, [ebp - 0x21c]
mov edx, dword [ebp - 0x34]
add edx, 0x10
call fcn.004054c0
push dword [ebp - 0x21c]
lea eax, [ebp - 0x210]
mov edx, 8
call fcn.004055f0
mov eax, dword [ebp - 0x210]
call fcn.0049148c
mov edx, 0x118
mov eax, dword [ebp - 0x34]
call fcn.004030d8
mov eax, dword [0x4d3744]
mov dword [eax], 0xc
mov eax, dword [ebp - 0x28]
call fcn.00470e6c
mov eax, dword [0x4d3744]
mov dword [eax], 0xd
jmp 0x499a7b
push 0x499cf8
mov eax, dword [ebp - 0x24]
push dword [eax + 0x40]
push 0x499c9c
lea edx, [ebp - 0x224]
movzx eax, byte [ebp - 0x9a]
call fcn.0040bbf0
push dword [ebp - 0x224]
push 0x499cb0
movzx eax, word [ebp - 0x9a]
shr eax, 8
movzx eax, al
lea edx, [ebp - 0x228]
call fcn.0040bbf0
push dword [ebp - 0x228]
push 0x499cc8
lea eax, [ebp - 0x22c]
mov edx, dword [ebp - 0x34]
add edx, 0x10
call fcn.004054c0
push dword [ebp - 0x22c]
lea eax, [ebp - 0x220]
mov edx, 8
call fcn.004055f0
mov eax, dword [ebp - 0x220]
call fcn.0049148c
mov eax, dword [0x4d3744]
mov dword [eax], 0xe
mov eax, dword [ebp - 0x28]
call fcn.00470e6c
mov eax, dword [0x4d3744]
mov dword [eax], 0xf
jmp 0x499a7b
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x3c]
call fcn.0040551c
cmp eax, 2
jge 0x49808b
jmp 0x499a7b
mov eax, dword [ebp - 0x28]
call fcn.00470e6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x499aad
lea eax, [ebp - 0x22c]
mov edx, 0x37
call fcn.00405280
lea eax, [ebp - 0x20]
mov edx, 8
call fcn.00405280
ret