Function at 0x493290
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0xb100]
mov eax, 0xb100
call fcn.00502fa0
push 0xffffffffffffffff
push 0x51ffde
mov eax, dword fs:[0]
push eax
sub esp, 0x294
mov eax, dword [0x5513d4]
xor eax, ebp
mov dword [ebp + 0xb0fc], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xb108]
lea eax, [ebp - 0xd]
push eax
push ebx
mov dword [ebp - 0x24], ebx
call fcn.004931f0
cmp eax, 3
jne 0x4935de
push dword [ebx + 0x2214]
lea ecx, [ebp]
call fcn.00457c50
mov dword [ebp - 4], 0
lea eax, [ebp]
push 0
push 2
push eax
push ebx
call fcn.0048fb70
test al, al
je 0x4935cb
push 0x63
call fcn.00418f10
push 0x532580
mov ecx, ebx
call fcn.004600a0
test eax, eax
je 0x49354c
cmp byte [ebx + 0x7e6c], 0
jne 0x49354c
push 0
lea ecx, [ebp - 0xa0]
call fcn.00488f70
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa0]
push dword [ebx + 0x67a4]
push dword [ebx + 0x67a0]
call fcn.00489580
push 8
lea eax, [ebp + 0xb0f4]
push eax
lea ecx, [ebp - 0xa0]
call fcn.00489240
lea ecx, [ebp - 0xa0]
call fcn.004890f0
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x40], eax
call fcn.00489140
mov edi, eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0xd], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa0]
call fcn.0040cea0
push 0x65
call fcn.00418f10
movzx eax, byte [ebp - 0xd]
mov ecx, dword [ebx + 0x7e48]
neg eax
mov edx, dword [ebx + 0x7e4c]
sbb eax, eax
mov dword [ebp - 0x18], ecx
and eax, 0x1c
mov dword [ebp - 0x2c], edx
add eax, 0x1a
mov dword [ebp - 0x48], ecx
cmp byte [ebx + 0x7e64], 0
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x44], eax
je 0x493406
mov edi, dword [ebp - 0x44]
not eax
inc eax
add edi, 8
and eax, 0xf
add edi, eax
mov dword [ebp - 0x44], edi
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x44]
xor esi, esi
mov dword [ebp - 0x90], 0
add eax, dword [ebp - 0x48]
mov dword [ebp - 0x44], eax
adc esi, dword [ebp - 0x38]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
mov byte [ebp - 0x80], 0
mov byte [ebp - 4], 2
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov byte [ebp - 0x6c], 0
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x14]
push edx
push ecx
push esi
mov esi, dword [ebp - 0x40]
push edi
push esi
push dword [ebp - 0x34]
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x90]
push eax
push ebx
call fcn.00491010
mov eax, esi
mov dword [ebp - 0x68], 0
shl eax, 9
lea ecx, [ebp - 0x68]
push eax
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov byte [ebp - 0x58], 0
call fcn.00404d60
mov byte [ebp - 4], 4
push dword [ebp - 0x64]
push 0
push dword [ebp - 0x68]
call fcn.00505530
mov eax, dword [ebx]
add esp, 0xc
mov esi, dword [eax + 0x10]
mov ecx, esi
push 0
push 0
push 0
call dword [0x523720]
mov ecx, ebx
call esi
push 0x64
call fcn.00418f10
cmp dword [ebp - 0x2c], 0
mov dword [0x58c348], 0xffffffff
mov dword [ebp - 0x20], 0
jl 0x493aa2
mov esi, dword [ebp - 0x18]
jg 0x493510
test esi, esi
je 0x493aa2
mov edi, dword [ebp - 0x2c]
call fcn.0049dc00
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x38]
sub eax, esi
mov ecx, edx
sbb ecx, edi
cmp dword [ebp - 0x48], 0x7fffffff
jne 0x4938ff
cmp edx, 0x7fffffff
jne 0x4938ff
mov dword [0x58c348], 0xffffffff
jmp 0x49393d
mov eax, dword [ebx]
push 0
push 0
push dword [ebx + 0x7e68]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x523720]
mov ecx, ebx
call esi
push 0x78
mov ecx, ebx
call fcn.0045fe90
test eax, eax
je 0x49359e
cmp byte [ebx + 0x7e6c], 0
jne 0x49359e
movzx eax, word [ebx + 0x7abe]
xor esi, esi
mov edi, dword [ebx + 0x7ac0]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], esi
mov byte [ebp - 0xd], 0
jmp 0x4933af
cmp byte [ebp - 0xd], 0
je 0x493603
cmp byte [ebx + 0x7e64], 0
je 0x493603
push 0x66
call fcn.00418f10
lea eax, [ebx + 0x1e]
push eax
push 0x41
call fcn.00451e30
push 0xa
mov ecx, 0x58c304
call fcn.0046dd90
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.00457ed0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xb0fc]
xor ecx, ebp
call fcn.00502f8e
lea esp, [ebp + 0xb100]
pop ebp
ret 4
mov eax, dword [ebx]
push 0
push 0
push 0
mov esi, dword [eax + 0x10]
mov ecx, esi
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x34], 0
mov dword [ebx + 0x7e48], 0
mov dword [ebx + 0x7e4c], 0
call dword [0x523720]
mov ecx, ebx
call esi
mov eax, dword [ebx]
lea ecx, [ebp + 0x8ef4]
push 0x2000
push ecx
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x523720]
mov ecx, ebx
call esi
mov esi, dword [ebp + 0xb0f8]
test eax, eax
mov edi, dword [ebp + 0xb0f4]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov al, byte [ebp - 0xd]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0xd], al
je 0x49378e
mov esi, dword [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x38], eax
lea eax, [esi - 0x32]
test eax, eax
jle 0x49373a
mov ebx, dword [ebp - 0x38]
lea edi, [ebp + 0x8ef6]
mov edi, edi
mov al, byte [edi]
cmp al, 0x7a
jne 0x4936e7
cmp dword [edi + 0x20], 0x746f7250
jne 0x4936e7
cmp dword [edi + 0x24], 0x2b746365
jne 0x4936e7
mov bl, byte [edi - 1]
mov bh, byte [edi - 2]
push 0x34
push edi
push 0xffffffffffffffff
call fcn.00468fb0
movzx edx, bl
shl edx, 8
movzx ecx, bh
add edx, ecx
not edx
xor eax, edx
movzx eax, ax
test eax, eax
je 0x4937c8
mov ebx, dword [ebp - 0x38]
jmp 0x493727
cmp al, 0x78
jne 0x493727
cmp dword [edi + 0x10], 0x746f7250
jne 0x493727
cmp dword [edi + 0x14], 0x21746365
jne 0x493727
movzx ecx, byte [edi - 1]
movzx eax, byte [edi - 2]
shl ecx, 8
push 0x18
add ecx, eax
push edi
not ecx
push 0xffffffffffffffff
movzx esi, cx
call fcn.00468fb0
movzx eax, ax
cmp esi, eax
je 0x49388f
mov esi, dword [ebp - 0x28]
inc ebx
lea eax, [esi - 0x32]
inc edi
mov dword [ebp - 0x38], ebx
cmp ebx, eax
jl 0x4936a0
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x34]
add eax, 0x1fce
mov esi, dword [ebx]
adc edx, 0
mov dword [ebp - 0x20], eax
push 0
push edx
mov esi, dword [esi + 0x10]
mov ecx, esi
push eax
mov dword [ebp - 0x34], edx
call dword [0x523720]
mov ecx, ebx
call esi
mov eax, dword [ebx]
lea ecx, [ebp + 0x8ef4]
push 0x2000
push ecx
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x523720]
mov ecx, ebx
call esi
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x493682
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebx + 0x7e48]
or eax, dword [ebx + 0x7e4c]
jne 0x4933af
mov eax, dword [ebx]
push 0
push 0
push 0
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x523720]
mov ecx, ebx
call esi
push 0x66
call fcn.00418f10
mov ebx, 1
jmp 0x4935cd
movzx ecx, byte [edi + 0x2b]
movzx eax, byte [edi + 0x2a]
shl ecx, 8
add ecx, eax
mov byte [ebp - 0xd], 1
movzx eax, byte [edi + 0x29]
shl ecx, 8
add ecx, eax
movzx eax, byte [edi + 0x28]
shl ecx, 8
add ecx, eax
movzx eax, byte [edi + 0x33]
cdq
mov dword [ebp - 0x40], ecx
mov esi, eax
movzx eax, byte [edi + 0x32]
mov ecx, edx
shld ecx, esi, 8
cdq
shl esi, 8
add esi, eax
movzx eax, byte [edi + 0x31]
adc ecx, edx
cdq
shld ecx, esi, 8
shl esi, 8
add esi, eax
movzx eax, byte [edi + 0x30]
adc ecx, edx
cdq
shld ecx, esi, 8
shl esi, 8
add esi, eax
movzx eax, byte [edi + 0x2f]
adc ecx, edx
cdq
mov dword [ebp + 0xb0f8], ecx
mov ebx, edx
mov ecx, eax
movzx eax, byte [edi + 0x2e]
shld ebx, ecx, 8
cdq
shl ecx, 8
add ecx, eax
movzx eax, byte [edi + 0x2d]
adc ebx, edx
cdq
shld ebx, ecx, 8
shl ecx, 8
add ecx, eax
movzx eax, byte [edi + 0x2c]
adc ebx, edx
cdq
shld ebx, ecx, 8
shl ecx, 8
add ecx, 0
adc ebx, esi
add ecx, eax
mov eax, dword [ebp - 0x38]
adc ebx, edx
mov dword [ebp - 0x1c], ecx
cdq
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x24]
adc edx, dword [ebp - 0x34]
mov dword [ebx + 0x7e48], eax
mov dword [ebx + 0x7e4c], edx
jmp 0x49373a
movzx ecx, byte [edi + 0xb]
movzx eax, byte [edi + 0xa]
shl ecx, 8
add ecx, eax
mov byte [ebp - 0xd], 0
movzx eax, byte [edi + 0xf]
cdq
mov dword [ebp - 0x40], ecx
mov esi, edx
mov ecx, eax
movzx eax, byte [edi + 0xe]
shld esi, ecx, 8
cdq
shl ecx, 8
add ecx, eax
movzx eax, byte [edi + 0xd]
adc esi, edx
cdq
shld esi, ecx, 8
shl ecx, 8
add ecx, eax
movzx eax, byte [edi + 0xc]
adc esi, edx
cdq
shld esi, ecx, 8
shl ecx, 8
add ecx, eax
mov eax, ebx
mov ebx, dword [ebp - 0x24]
adc esi, edx
mov dword [ebp - 0x1c], ecx
cdq
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], esi
adc edx, dword [ebp - 0x34]
mov dword [ebx + 0x7e48], eax
mov dword [ebx + 0x7e4c], edx
jmp 0x49373a
push edx
push dword [ebp - 0x48]
push ecx
push eax
call fcn.0049c470
mov ecx, dword [ebx + 0x2214]
mov dword [ebp - 0x3c], eax
cmp byte [ecx + 0x6148], 0
jne 0x493938
cmp eax, dword [0x58c348]
je 0x493938
push 0
push 0x64
cdq
push edx
push eax
push 0x532df4
call fcn.0049fe40
mov eax, dword [ebp - 0x3c]
mov dword [0x58c348], eax
mov eax, dword [ebp - 0x8c]
cmp dword [ebp - 0x20], eax
jae 0x4939a5
mov eax, dword [ebx]
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x523720]
mov ecx, ebx
call esi
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x90]
cmp edx, dword [esi + ecx*8 + 4]
jl 0x4939a2
jg 0x49396f
cmp eax, dword [esi + ecx*8]
jb 0x4939a2
mov eax, dword [ebp - 0x7c]
mov esi, dword [ebx]
push 1
mov eax, dword [eax + ecx*4]
mov esi, dword [esi + 0x10]
mov ecx, esi
cdq
push edx
push eax
call dword [0x523720]
mov ecx, ebx
call esi
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x7c]
mov esi, dword [ebp - 0x18]
mov eax, dword [eax + ecx*4]
cdq
sub esi, eax
sbb edi, edx
inc ecx
mov dword [ebp - 0x20], ecx
jmp 0x4939a5
mov esi, dword [ebp - 0x18]
test edi, edi
jg 0x4939da
jl 0x4939b3
cmp esi, 0x200
jae 0x4939da
mov eax, 0x200
mov dword [ebp - 0x30], esi
sub eax, esi
push eax
lea eax, [ebp + 0xaef4]
add eax, esi
push 0
push eax
call fcn.00505530
xor ecx, ecx
add esp, 0xc
mov dword [ebp - 0x18], ecx
xor edi, edi
jmp 0x4939ed
add esi, 0xfffffe00
mov dword [ebp - 0x30], 0x200
mov dword [ebp - 0x18], esi
adc edi, 0xffffffff
mov eax, dword [ebx]
lea ecx, [ebp + 0xaef4]
push dword [ebp - 0x30]
mov dword [ebp - 0x2c], edi
push ecx
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x523720]
mov ecx, ebx
call esi
mov ecx, dword [ebp - 0x28]
lea edx, [ebp + 0xaef5]
shl ecx, 9
lea esi, [ebp + 0xaef4]
add ecx, dword [ebp - 0x68]
mov eax, ecx
neg eax
add edx, eax
add esi, eax
mov dword [ebp - 0x3c], edx
lea edx, [ebp + 0xaef6]
mov ebx, dword [ebp - 0x3c]
add edx, eax
mov dword [ebp - 0x50], edx
lea edx, [ebp + 0xaef7]
mov edi, dword [ebp - 0x50]
add eax, edx
mov dword [ebp - 0x30], eax
mov edx, 0x80
lea esp, [esp]
mov al, byte [ecx + esi]
lea ecx, [ecx + 4]
xor byte [ecx - 4], al
mov al, byte [ecx + ebx - 4]
xor byte [ecx - 3], al
mov al, byte [ecx + edi - 4]
xor byte [ecx - 2], al
mov eax, dword [ebp - 0x30]
mov al, byte [ecx + eax - 4]
xor byte [ecx - 1], al
sub edx, 1
jne 0x493a50
mov eax, dword [ebp - 0x28]
mov edi, dword [ebp - 0x2c]
inc eax
cmp eax, dword [ebp - 0x40]
mov ebx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x18]
sbb ecx, ecx
and ecx, eax
mov dword [ebp - 0x28], ecx
test edi, edi
jg 0x493513
jl 0x493a9f
test esi, esi
jne 0x493513
mov edi, dword [ebp - 0x1c]
push 0
push 0x64
push 0
push 0x64
call fcn.0049c470
mov ecx, dword [ebx + 0x2214]
mov esi, eax
cmp byte [ecx + 0x6148], 0
jne 0x493ad9
cmp esi, dword [0x58c348]
je 0x493ad9
push 0
push 0x64
cdq
push edx
push eax
push 0x532df4
call fcn.0049fe40
mov eax, dword [ebp - 0x14]
shld eax, edi, 1
mov dword [0x58c348], esi
mov esi, dword [ebx]
add edi, edi
add edi, dword [ebp - 0x44]
push 0
adc eax, dword [ebp - 0x34]
mov esi, dword [esi + 0x10]
mov ecx, esi
push eax
push edi
call dword [0x523720]
mov ecx, ebx
call esi
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x493b76
mov edi, dword [ebp - 0x68]
lea eax, [ebp + 0xaef5]
sub eax, edi
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x30], eax
jmp 0x493b20
mov eax, dword [ebx]
lea ecx, [ebp + 0xaef4]
push 0x200
push ecx
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x523720]
mov ecx, ebx
call esi
mov ecx, dword [ebp - 0x30]
mov edx, 0x80
mov al, byte [ecx + edi - 1]
xor byte [edi], al
mov al, byte [ecx + edi]
xor byte [edi + 1], al
mov al, byte [ecx + edi + 1]
xor byte [edi + 2], al
mov al, byte [ecx + edi + 2]
xor byte [edi + 3], al
add edi, 4
sub edx, 1
jne 0x493b45
sub ecx, 0x200
sub dword [ebp - 0x4c], 1
mov dword [ebp - 0x30], ecx
jne 0x493b20
mov eax, dword [ebx]
push 0
push 0
push 0
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x523720]
mov ecx, ebx
call esi
mov esi, dword [ebp - 0x38]
lea ecx, [ebp + 0x8ea8]
mov edi, dword [ebp - 0x48]
xor eax, eax
mov dword [ebp + 0x8ec8], eax
mov dword [ebp + 0x8ecc], eax
mov dword [ebp + 0x8ed0], eax
mov dword [ebp + 0x8ed4], eax
mov dword [ebp + 0x8ed8], eax
mov dword [ebp + 0x8edc], eax
mov dword [ebp + 0x8ee0], eax
mov dword [ebp + 0x8ee4], eax
mov dword [ebp + 0x8eec], eax
lea eax, [ebp + 0x1e]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x54], 0
mov dword [ebp + 0x8eac], 0x52452c
mov dword [ebp + 0x8eb0], 0x52452c
mov dword [ebp + 0x8eb4], 0x52452c
mov dword [ebp + 0x8eb8], 0x52452c
mov dword [ebp + 0x8ebc], 0x52452c
mov dword [ebp + 0x8ec0], 0x52452c
mov dword [ebp + 0x8ec4], 0x52452c
mov dword [ebp + 0x8ef0], 0x62
mov dword [ebp + 0x8ea8], eax
mov dword [ebp + 0x8ee8], 1
call fcn.0049ea30
mov dword [0x58c348], 0xffffffff
mov dword [ebp - 0x28], 0
test esi, esi
jl 0x494332
jg 0x493c7b
test edi, edi
jbe 0x494332
mov dword [ebp - 0x18], 0
call fcn.0049dc00
mov esi, dword [ebp - 0x48]
mov eax, esi
mov edx, dword [ebp - 0x38]
sub eax, edi
mov ecx, edx
sbb ecx, dword [ebp - 0x14]
cmp esi, 0x7fffffff
jne 0x493cae
cmp edx, esi
jne 0x493cae
mov dword [0x58c348], 0xffffffff
jmp 0x493ce7
push edx
push esi
push ecx
push eax
call fcn.0049c470
mov ecx, dword [ebx + 0x2214]
mov esi, eax
cmp byte [ecx + 0x6148], 0
jne 0x493ce1
cmp esi, dword [0x58c348]
je 0x493ce1
push 0
push 0x64
cdq
push edx
push eax
push 0x532df4
call fcn.0049fe40
mov dword [0x58c348], esi
mov eax, dword [ebp - 0x8c]
cmp dword [ebp - 0x28], eax
jae 0x493d48
mov eax, dword [ebx]
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x523720]
mov ecx, ebx
call esi
mov ecx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x90]
cmp edx, dword [esi + ecx*8 + 4]
jl 0x493d48
jg 0x493d19
cmp eax, dword [esi + ecx*8]
jb 0x493d48
mov eax, dword [ebp - 0x7c]
mov esi, dword [ebx]
push 1
mov eax, dword [eax + ecx*4]
mov esi, dword [esi + 0x10]
mov ecx, esi
cdq
push edx
push eax
call dword [0x523720]
mov ecx, ebx
call esi
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + ecx*4]
cdq
sub edi, eax
sbb dword [ebp - 0x14], edx
inc ecx
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x14]
test edx, edx
jg 0x493d86
jl 0x493d59
cmp edi, 0x200
jae 0x493d86
mov eax, 0x200
mov esi, edi
sub eax, edi
push eax
lea eax, [ebp + 0xaef4]
add eax, edi
push 0
push eax
call fcn.00505530
add esp, 0xc
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x14], 0
jmp 0x493d9a
add edi, 0xfffffe00
mov esi, 0x200
mov dword [ebp - 0x4c], edi
adc edx, 0xffffffff
mov dword [ebp - 0x14], edx
mov eax, dword [ebx]
lea ecx, [ebp + 0xaef4]
push esi
push ecx
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x523720]
mov ecx, ebx
call esi
push eax
mov dword [ebp + 0xb0f8], eax
lea ecx, [ebp]
lea eax, [ebp + 0xaef4]
push eax
call fcn.00473490
push 0x200
lea eax, [ebp + 0xaef4]
push eax
push 0xffffffffffffffff
call fcn.00468fb0
movzx eax, ax
mov dword [ebp - 0x3c], eax
mov eax, dword [ebx]
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x523720]
mov ecx, ebx
call esi
mov esi, dword [ebp - 0x24]
mov ebx, eax
push 0
push dword [ebp - 0x34]
mov edi, edx
mov esi, dword [esi]
push dword [ebp - 0x44]
mov esi, dword [esi + 0x10]
mov ecx, esi
call dword [0x523720]
mov ecx, dword [ebp - 0x24]
call esi
mov esi, dword [ebp - 0x24]
mov ecx, esi
call fcn.00472c80
movzx eax, al
mov ecx, esi
mov dword [ebp - 0x2c], eax
call fcn.00472c80
mov esi, dword [esi]
movzx eax, al
shl eax, 8
add dword [ebp - 0x2c], eax
add dword [ebp - 0x44], 2
mov esi, dword [esi + 0x10]
mov ecx, esi
adc dword [ebp - 0x34], 0
push 0
push edi
push ebx
call dword [0x523720]
mov ecx, dword [ebp - 0x24]
call esi
mov ebx, dword [ebp - 0x2c]
cmp ebx, dword [ebp - 0x3c]
jne 0x493f29
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0xffffffff
je 0x493f1e
push dword [ebp - 0x18]
mov eax, ecx
shl eax, 9
push eax
push ecx
push 0x6b
call fcn.0048e850
xor eax, eax
mov dword [ebp + 0x8ea8], 0x52452c
lea ecx, [ebp + 0x8ea8]
mov dword [ebp + 0x8eac], 0x52452c
mov dword [ebp + 0x8eb0], 0x52452c
mov dword [ebp + 0x8eb4], 0x52452c
mov dword [ebp + 0x8eb8], 0x52452c
mov dword [ebp + 0x8ebc], 0x52452c
mov dword [ebp + 0x8ec0], 0x52452c
mov dword [ebp + 0x8ec4], 0x52452c
mov dword [ebp + 0x8ec8], eax
mov dword [ebp + 0x8ecc], eax
mov dword [ebp + 0x8ed0], eax
mov dword [ebp + 0x8ed4], eax
mov dword [ebp + 0x8ed8], eax
mov dword [ebp + 0x8edc], eax
mov dword [ebp + 0x8ee0], eax
mov dword [ebp + 0x8ee4], eax
mov dword [ebp + 0x8ee8], eax
mov dword [ebp + 0x8eec], eax
mov dword [ebp + 0x8ef0], 0x6d
call fcn.0049ea30
or esi, 0xffffffff
mov dword [ebp - 0x1c], esi
jmp 0x49423c
mov eax, dword [ebp - 0x54]
lea esi, [ebp + 0xaef4]
shl eax, 9
lea edi, [ebp - 0x2a0]
add eax, dword [ebp - 0x68]
mov ecx, 0x80
rep movsd dword es:[edi], dword [esi]
mov edx, eax
lea ecx, [ebp + 0xaef4]
xor esi, esi
lea edi, [eax + 2]
sub edx, ecx
mov dword [ebp - 0x50], edx
jmp 0x493f60
lea ecx, [ebp + 0xaef4]
add ecx, esi
mov al, byte [edx + ecx]
xor byte [ecx], al
mov al, byte [esi + edi - 1]
xor byte [ecx + 1], al
mov al, byte [esi + edi]
xor byte [ecx + 2], al
mov al, byte [esi + edi + 1]
add esi, 4
xor byte [ecx + 3], al
cmp esi, 0x200
jb 0x493f60
push 0x200
lea eax, [ebp + 0xaef4]
push eax
push 0xffffffffffffffff
call fcn.00468fb0
movzx eax, ax
cmp ebx, eax
je 0x494087
mov ebx, 0x40
mov dword [ebp - 0x3c], ebx
mov ecx, 0x80
lea esi, [ebp - 0x2a0]
lea edi, [ebp + 0xaef4]
xor edx, edx
rep movsd dword es:[edi], dword [esi]
test ebx, ebx
jle 0x493fe5
jmp 0x493fd0
mov eax, dword [ebp - 0x50]
lea ecx, [ebp + 0xaef4]
add ecx, edx
inc edx
mov al, byte [eax + ecx]
xor byte [ecx], al
cmp edx, ebx
jl 0x493fd0
push 0x200
lea eax, [ebp + 0xaef4]
push eax
push 0xffffffffffffffff
call fcn.00468fb0
movzx eax, ax
cmp dword [ebp - 0x2c], eax
je 0x494087
lea esi, [ebp - 0x2a0]
mov ecx, 0x80
lea edi, [ebp + 0xaef4]
mov eax, ebx
rep movsd dword es:[edi], dword [esi]
cmp ebx, 0x200
jae 0x494040
mov ebx, dword [ebp - 0x50]
lea ecx, [ebx + eax]
mov cl, byte [ebp + ecx + 0xaef4]
xor byte [ebp + eax + 0xaef4], cl
inc eax
cmp eax, 0x200
jb 0x494024
mov ebx, dword [ebp - 0x3c]
push 0x200
lea eax, [ebp + 0xaef4]
push eax
push 0xffffffffffffffff
call fcn.00468fb0
movzx eax, ax
cmp dword [ebp - 0x2c], eax
je 0x494087
add ebx, 0x40
mov dword [ebp - 0x3c], ebx
cmp ebx, 0x100
jl 0x493fb2
inc dword [ebp - 0x30]
mov esi, dword [ebp - 0x1c]
cmp esi, 0xffffffff
jne 0x49423c
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x1c], esi
jmp 0x49423c
mov ecx, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
cmp ecx, 0xffffffff
je 0x494148
push ebx
mov eax, ecx
shl eax, 9
push eax
push ecx
push 0x6b
call fcn.0048e850
xor eax, eax
mov dword [ebp + 0x8ea8], 0x52452c
lea ecx, [ebp + 0x8ea8]
mov dword [ebp + 0x8eac], 0x52452c
mov dword [ebp + 0x8eb0], 0x52452c
mov dword [ebp + 0x8eb4], 0x52452c
mov dword [ebp + 0x8eb8], 0x52452c
mov dword [ebp + 0x8ebc], 0x52452c
mov dword [ebp + 0x8ec0], 0x52452c
mov dword [ebp + 0x8ec4], 0x52452c
mov dword [ebp + 0x8ec8], eax
mov dword [ebp + 0x8ecc], eax
mov dword [ebp + 0x8ed0], eax
mov dword [ebp + 0x8ed4], eax
mov dword [ebp + 0x8ed8], eax
mov dword [ebp + 0x8edc], eax
mov dword [ebp + 0x8ee0], eax
mov dword [ebp + 0x8ee4], eax
mov dword [ebp + 0x8ee8], eax
mov dword [ebp + 0x8eec], eax
mov dword [ebp + 0x8ef0], 0x6d
call fcn.0049ea30
mov ecx, dword [ebp - 0x20]
cmp ecx, 0xffffffff
je 0x494207
lea eax, [ebx + 0x200]
push eax
push ebx
push ecx
push 0x6b
call fcn.0048e850
xor eax, eax
mov dword [ebp + 0x8ea8], 0x52452c
lea ecx, [ebp + 0x8ea8]
mov dword [ebp + 0x8eac], 0x52452c
mov dword [ebp + 0x8eb0], 0x52452c
mov dword [ebp + 0x8eb4], 0x52452c
mov dword [ebp + 0x8eb8], 0x52452c
mov dword [ebp + 0x8ebc], 0x52452c
mov dword [ebp + 0x8ec0], 0x52452c
mov dword [ebp + 0x8ec4], 0x52452c
mov dword [ebp + 0x8ec8], eax
mov dword [ebp + 0x8ecc], eax
mov dword [ebp + 0x8ed0], eax
mov dword [ebp + 0x8ed4], eax
mov dword [ebp + 0x8ed8], eax
mov dword [ebp + 0x8edc], eax
mov dword [ebp + 0x8ee0], eax
mov dword [ebp + 0x8ee4], eax
mov dword [ebp + 0x8ee8], eax
mov dword [ebp + 0x8eec], eax
mov dword [ebp + 0x8ef0], 0x6c
call fcn.0049ea30
or esi, 0xffffffff
lea ecx, [ebp]
push 0
mov dword [ebp - 0x1c], esi
call fcn.0045b280
mov edi, dword [ebp + 0xb0f8]
lea ecx, [ebp]
sub eax, edi
sbb edx, 0
push edx
push eax
call fcn.0045b1a0
push edi
lea eax, [ebp + 0xaef4]
push eax
lea ecx, [ebp]
call fcn.00473490
mov eax, dword [ebp - 0x54]
inc dword [ebp - 0x20]
inc eax
add dword [ebp - 0x18], 0x200
cmp eax, dword [ebp - 0x40]
mov ebx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x4c]
sbb ecx, ecx
and ecx, eax
cmp dword [ebp - 0x14], 0
mov dword [ebp - 0x54], ecx
jg 0x493c82
jl 0x49426e
test edi, edi
jne 0x493c82
cmp esi, 0xffffffff
je 0x49432f
mov eax, dword [ebp - 0x20]
shl eax, 9
push eax
mov eax, esi
shl eax, 9
push eax
push esi
push 0x6b
call fcn.0048e850
xor eax, eax
mov dword [ebp + 0x8ea8], 0x52452c
lea ecx, [ebp + 0x8ea8]
mov dword [ebp + 0x8eac], 0x52452c
mov dword [ebp + 0x8eb0], 0x52452c
mov dword [ebp + 0x8eb4], 0x52452c
mov dword [ebp + 0x8eb8], 0x52452c
mov dword [ebp + 0x8ebc], 0x52452c
mov dword [ebp + 0x8ec0], 0x52452c
mov dword [ebp + 0x8ec4], 0x52452c
mov dword [ebp + 0x8ec8], eax
mov dword [ebp + 0x8ecc], eax
mov dword [ebp + 0x8ed0], eax
mov dword [ebp + 0x8ed4], eax
mov dword [ebp + 0x8ed8], eax
mov dword [ebp + 0x8edc], eax
mov dword [ebp + 0x8ee0], eax
mov dword [ebp + 0x8ee4], eax
mov dword [ebp + 0x8ee8], eax
mov dword [ebp + 0x8eec], eax
mov dword [ebp + 0x8ef0], 0x6d
call fcn.0049ea30
mov ebx, dword [ebp - 0x24]
push 0
push 0x64
push 0
push 0x64
call fcn.0049c470
mov ecx, dword [ebx + 0x2214]
mov esi, eax
cmp byte [ecx + 0x6148], 0
jne 0x494369
cmp esi, dword [0x58c348]
je 0x494369
push 0
push 0x64
cdq
push edx
push eax
push 0x532df4
call fcn.0049fe40
mov dword [0x58c348], esi
mov esi, dword [ebx]
push 0
push dword [ebp - 0x38]
push dword [ebp - 0x48]
mov esi, dword [esi + 0x10]
mov ecx, esi
call dword [0x523720]
mov ecx, ebx
call esi
push SysReAllocString
push SysReAllocString
lea eax, [ebp]
mov ecx, ebx
push eax
call fcn.004727e0
lea ecx, [ebp]
call fcn.00472be0
test edx, edx
jl 0x494465
jg 0x4943b7
test eax, eax
je 0x494465
xor eax, eax
mov dword [ebp + 0x8eac], 0x52452c
mov dword [ebp + 0x8ec8], eax
lea ecx, [ebp + 0x8ea8]
mov dword [ebp + 0x8ecc], eax
mov dword [ebp + 0x8ed0], eax
mov dword [ebp + 0x8ed4], eax
mov dword [ebp + 0x8ed8], eax
mov dword [ebp + 0x8edc], eax
mov dword [ebp + 0x8ee0], eax
mov dword [ebp + 0x8ee4], eax
mov dword [ebp + 0x8eec], eax
lea eax, [ebp + 0x1e]
mov dword [ebp + 0x8eb0], 0x52452c
mov dword [ebp + 0x8eb4], 0x52452c
mov dword [ebp + 0x8eb8], 0x52452c
mov dword [ebp + 0x8ebc], 0x52452c
mov dword [ebp + 0x8ec0], 0x52452c
mov dword [ebp + 0x8ec4], 0x52452c
mov dword [ebp + 0x8ef0], 0x90
mov dword [ebp + 0x8ea8], eax
mov dword [ebp + 0x8ee8], 1
call fcn.0049ea30
lea ecx, [ebp]
call fcn.00472780
mov ebx, dword [ebp - 0x30]
neg ebx
sbb ebx, ebx
and ebx, 2
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x68]
test esi, esi
je 0x494492
cmp byte [ebp - 0x58], 0
je 0x494489
push dword [ebp - 0x60]
push esi
call fcn.0049a3e0
push esi
call fcn.005097b2
add esp, 4
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x7c]
test esi, esi
je 0x4944b9
cmp byte [ebp - 0x6c], 0
je 0x4944b0
mov eax, dword [ebp - 0x74]
shl eax, 2
push eax
push esi
call fcn.0049a3e0
push esi
call fcn.005097b2
add esp, 4
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x90]
test esi, esi
je 0x4935cd
cmp byte [ebp - 0x80], 0
je 0x4944e1
mov eax, dword [ebp - 0x88]
shl eax, 3
push eax
push esi
call fcn.0049a3e0
push esi
call fcn.005097b2
add esp, 4
jmp 0x4935cd