Function at 0x498134
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff44
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa0], eax
xor eax, eax
push ebp
push 0x498de9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp byte [eax + 0x1c], 0
jne 0x4981ad
lea edx, [ebp - 0xa0]
mov eax, 0x49717c
call fcn.00406ec8
mov ecx, dword [ebp - 0xa0]
mov dl, 1
mov eax, dword [0x4095d4]
call fcn.0040f6dc
call fcn.00404618
lea eax, [ebp - 0x14]
call fcn.004970ac
xor eax, eax
mov dword [ebp - 0x44], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x14]
mov dl, 1
mov eax, dword [0x497bc0]
call fcn.00497c34
mov dword [ebp - 0x18], eax
xor edx, edx
push ebp
push 0x498d5b
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0x33]
mov ecx, 2
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 8]
mov al, byte [ebp - 0x33]
and al, 0xf
cmp al, 8
jne 0x498214
xor eax, eax
mov al, byte [ebp - 0x33]
shr eax, 4
cmp eax, 7
jbe 0x49823b
lea edx, [ebp - 0xa4]
mov eax, 0x49717c
call fcn.00406ec8
mov ecx, dword [ebp - 0xa4]
mov dl, 1
mov eax, dword [0x4095d4]
call fcn.0040f6dc
call fcn.00404618
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
mov edx, dword [ebp + 8]
movzx edx, byte [edx - 0x1d]
imul edx
add eax, 7
test eax, eax
jns 0x498254
add eax, 7
sar eax, 3
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 8]
mov al, byte [eax - 0x19]
sub al, 1
jb 0x49826b
je 0x4982e1
jmp 0x4982ee
mov dword [ebp - 0x28], 1
mov byte [ebp - 0x45], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax + 4]
dec eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax + 8]
dec eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax + 4]
mov edx, dword [ebp + 8]
imul dword [edx - 0x18]
mov edx, dword [ebp + 8]
movzx edx, byte [edx - 0x1d]
imul edx
add eax, 7
test eax, eax
jns 0x4982b2
add eax, 7
sar eax, 3
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x20]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
cmp dword [eax + 0xc], 0
je 0x498315
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x20]
mov dword [ebp - 4], eax
jmp 0x498315
mov dword [ebp - 0x28], 7
mov byte [ebp - 0x45], 1
jmp 0x498315
lea edx, [ebp - 0xa8]
mov eax, 0x49717c
call fcn.00406ec8
mov ecx, dword [ebp - 0xa8]
mov dl, 1
mov eax, dword [0x4095d4]
call fcn.0040f6dc
call fcn.00404618
lea eax, [ebp - 0x80]
mov edx, 0x1c
call fcn.004797a0
lea eax, [ebp - 0x9c]
mov edx, 0x1c
call fcn.004797a0
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x18]
mov dl, 1
mov eax, dword [0x4953f8]
call fcn.00495578
mov dword [ebp - 0x1c], eax
xor edx, edx
push ebp
push 0x498ce3
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x28]
test eax, eax
jbe 0x498c4e
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], 0x5991ec
mov dword [ebp - 0x54], 0x599224
mov dword [ebp - 0x58], 0x599208
mov dword [ebp - 0x5c], 0x599240
lea eax, [ebp - 0x80]
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x64], eax
cmp byte [ebp - 0x45], 0
je 0x498488
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov ebx, dword [eax + 4]
mov eax, ebx
and eax, 0xfffffff8
mov edx, dword [ebp - 0x50]
mov ecx, dword [edx]
xor edx, edx
div ecx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
mov eax, ebx
and eax, 7
mov edx, dword [ebp - 0x54]
sub eax, dword [edx]
add eax, ecx
dec eax
xor edx, edx
div ecx
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jbe 0x4983d4
mov eax, dword [ebp - 0x20]
add dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov ebx, dword [eax + 8]
mov eax, ebx
and eax, 0xfffffff8
mov edx, dword [ebp - 0x58]
mov ecx, dword [edx]
xor edx, edx
div ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
mov eax, ebx
and eax, 7
mov edx, dword [ebp - 0x5c]
sub eax, dword [edx]
add eax, ecx
dec eax
xor edx, edx
div ecx
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jbe 0x498411
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
imul dword [ebp - 0x30]
mov edx, dword [ebp + 8]
movzx edx, byte [edx - 0x1d]
imul edx
add eax, 7
test eax, eax
jns 0x49842d
add eax, 7
sar eax, 3
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 8]
cmp dword [eax - 0x18], 2
setg al
and eax, 0xff
shl eax, 2
inc eax
mov edx, dword [ebp - 0x2c]
imul edx, dword [ebp - 0x30]
imul edx
call fcn.00402838
mov ebx, eax
mov eax, dword [ebp - 0x60]
mov dword [eax], ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
cmp dword [eax + 0xc], 0
je 0x498482
mov eax, dword [ebp - 0x2c]
imul dword [ebp - 0x30]
call fcn.00402838
mov edx, dword [ebp - 0x64]
mov dword [edx], eax
mov eax, dword [ebp - 0x64]
mov eax, dword [eax]
mov dword [ebp - 4], eax
dec dword [ebp - 0x30]
dec dword [ebp - 0x2c]
mov eax, dword [ebp - 0x44]
call fcn.00402838
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x44]
call fcn.00402838
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x44]
call fcn.004797a0
xor edx, edx
push ebp
push 0x498c26
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [ebp - 0x2c], 0
jl 0x498c08
cmp dword [ebp - 0x44], 0
jbe 0x498c08
mov esi, dword [ebp - 0x2c]
test esi, esi
jb 0x498c08
inc esi
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x3c], eax
lea edx, [ebp - 0x31]
mov ecx, 1
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax]
call dword [ebx + 8]
mov ebx, dword [ebp - 0x38]
mov edx, ebx
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x1c]
mov edi, dword [eax]
call dword [edi + 8]
mov dl, byte [ebp - 0x31]
lea eax, [ebp - 0x14]
call fcn.004970f0
mov edx, ebx
mov ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x14]
call fcn.004970b8
xor eax, eax
mov al, byte [ebp - 0x31]
cmp eax, 4
ja case.default.0x498530
jmp dword [eax*4 + 0x498537]
mov eax, dword [ebp - 0x40]
mov ebx, dword [ebp - 0x44]
dec ebx
sub ebx, eax
jb case.0x498530.0
inc ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x38]
mov al, byte [edx + eax]
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x20]
add byte [edx + ecx], al
inc dword [ebp - 0x20]
dec ebx
jne 0x498563
jmp case.0x498530.0
mov ebx, dword [ebp - 0x44]
dec ebx
test ebx, ebx
jb case.0x498530.0
inc ebx
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x20]
mov al, byte [eax + edx]
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x20]
add byte [edx + ecx], al
inc dword [ebp - 0x20]
dec ebx
jne 0x498597
jmp case.0x498530.0
mov ebx, dword [ebp - 0x40]
dec ebx
test ebx, ebx
jb 0x4985df
inc ebx
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x20]
movzx eax, byte [eax + edx]
shr eax, 1
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x20]
add byte [edx + ecx], al
inc dword [ebp - 0x20]
dec ebx
jne 0x4985c4
mov eax, dword [ebp - 0x40]
mov ebx, dword [ebp - 0x44]
dec ebx
sub ebx, eax
jb case.0x498530.0
inc ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x38]
movzx eax, byte [edx + eax]
mov edx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x20]
movzx edx, byte [edx + ecx]
add eax, edx
shr eax, 1
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x20]
add byte [edx + ecx], al
inc dword [ebp - 0x20]
dec ebx
jne 0x4985f2
jmp case.0x498530.0
mov ebx, dword [ebp - 0x40]
dec ebx
test ebx, ebx
jb 0x498652
inc ebx
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x20]
mov dl, byte [eax + edx]
xor ecx, ecx
xor eax, eax
call fcn.0049742c
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x20]
add byte [edx + ecx], al
inc dword [ebp - 0x20]
dec ebx
jne 0x498631
mov eax, dword [ebp - 0x40]
mov ebx, dword [ebp - 0x44]
dec ebx
sub ebx, eax
jb case.0x498530.0
inc ebx
mov dword [ebp - 0x20], eax
mov edi, dword [ebp - 0x20]
sub edi, dword [ebp - 0x40]
mov eax, dword [ebp - 0x3c]
mov cl, byte [eax + edi]
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x20]
mov al, byte [eax + edx]
push eax
mov eax, dword [ebp - 0x38]
mov al, byte [eax + edi]
pop edx
call fcn.0049742c
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x20]
add byte [edx + ecx], al
inc dword [ebp - 0x20]
dec ebx
jne 0x498661
jmp case.0x498530.0
lea edx, [ebp - 0xac]
mov eax, 0x49717c
call fcn.00406ec8
mov ecx, dword [ebp - 0xac]
mov dl, 1
mov eax, dword [0x4095d4]
call fcn.0040f6dc
call fcn.00404618
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax - 0x1d]
cmp eax, 0x10
ja case.0x4986d7.0
mov al, byte [eax + 0x4986de]
jmp dword [eax*4 + 0x4986ef]
mov ebx, dword [ebp - 0x30]
test ebx, ebx
jb 0x498bd6
inc ebx
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp - 0x20]
and ecx, 7
mov eax, dword [ebp - 0xc]
mov al, byte [eax]
shl al, cl
and eax, 0xff
shr eax, 7
mov edx, dword [ebp - 8]
mov byte [edx], al
mov eax, dword [ebp - 0x20]
and eax, 7
cmp eax, 7
jne 0x498742
inc dword [ebp - 0xc]
inc dword [ebp - 8]
inc dword [ebp - 0x20]
dec ebx
jne 0x49871a
jmp 0x498bd6
mov ebx, dword [ebp - 0x30]
test ebx, ebx
jb 0x498bd6
inc ebx
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp - 0x20]
not ecx
and ecx, 3
add ecx, ecx
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
shr eax, cl
and eax, 3
mov dword [ebp - 0xb0], eax
fild dword [ebp - 0xb0]
call fcn.00402c78
mov edx, dword [ebp - 8]
mov byte [edx], al
mov eax, dword [ebp - 0x20]
and eax, 3
cmp eax, 3
jne 0x49879c
inc dword [ebp - 0xc]
inc dword [ebp - 8]
inc dword [ebp - 0x20]
dec ebx
jne 0x498763
jmp 0x498bd6
mov ebx, dword [ebp - 0x30]
test ebx, ebx
jb 0x498bd6
inc ebx
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp - 0x20]
not ecx
and ecx, 1
shl ecx, 2
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
shr eax, cl
and eax, 0xf
mov dword [ebp - 0xb0], eax
fild dword [ebp - 0xb0]
call fcn.00402c78
mov edx, dword [ebp - 8]
mov byte [edx], al
mov eax, dword [ebp - 0x20]
and eax, 1
test al, al
je 0x4987f6
inc dword [ebp - 0xc]
inc dword [ebp - 8]
inc dword [ebp - 0x20]
dec ebx
jne 0x4987bd
jmp 0x498bd6
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
dec eax
je 0x498823
dec eax
je 0x49883c
dec eax
je 0x4988b5
dec eax
je 0x4988fd
jmp 0x498bd6
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x44]
call fcn.00402a40
mov eax, dword [ebp - 0x44]
add dword [ebp - 8], eax
jmp 0x498bd6
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
cmp dword [eax + 0xc], 0
je 0x498886
mov ebx, dword [ebp - 0x30]
test ebx, ebx
jb 0x498bd6
inc ebx
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0xc]
mov al, byte [eax]
mov edx, dword [ebp - 8]
mov byte [edx], al
inc dword [ebp - 8]
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
mov al, byte [eax]
mov edx, dword [ebp - 4]
mov byte [edx], al
inc dword [ebp - 4]
inc dword [ebp - 0xc]
inc dword [ebp - 0x20]
dec ebx
jne 0x49885b
jmp 0x498bd6
mov ebx, dword [ebp - 0x30]
test ebx, ebx
jb 0x498bd6
inc ebx
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0xc]
mov al, byte [eax]
mov edx, dword [ebp - 8]
mov byte [edx], al
inc dword [ebp - 8]
add dword [ebp - 0xc], 2
inc dword [ebp - 0x20]
dec ebx
jne 0x498899
jmp 0x498bd6
mov ebx, dword [ebp - 0x30]
test ebx, ebx
jb 0x498bd6
inc ebx
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0xc]
mov al, byte [eax]
mov edx, dword [ebp - 8]
mov byte [edx + 2], al
mov eax, dword [ebp - 0xc]
mov al, byte [eax + 1]
mov edx, dword [ebp - 8]
mov byte [edx + 1], al
mov eax, dword [ebp - 0xc]
mov al, byte [eax + 2]
mov edx, dword [ebp - 8]
mov byte [edx], al
add dword [ebp - 8], 3
add dword [ebp - 0xc], 3
inc dword [ebp - 0x20]
dec ebx
jne 0x4988c8
jmp 0x498bd6
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
cmp dword [eax + 0xc], 0
je 0x498961
mov ebx, dword [ebp - 0x30]
test ebx, ebx
jb 0x498bd6
inc ebx
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0xc]
mov al, byte [eax]
mov edx, dword [ebp - 8]
mov byte [edx + 2], al
mov eax, dword [ebp - 0xc]
mov al, byte [eax + 1]
mov edx, dword [ebp - 8]
mov byte [edx + 1], al
mov eax, dword [ebp - 0xc]
mov al, byte [eax + 2]
mov edx, dword [ebp - 8]
mov byte [edx], al
add dword [ebp - 8], 3
add dword [ebp - 0xc], 3
mov eax, dword [ebp - 0xc]
mov al, byte [eax]
mov edx, dword [ebp - 4]
mov byte [edx], al
inc dword [ebp - 4]
inc dword [ebp - 0xc]
inc dword [ebp - 0x20]
dec ebx
jne 0x49891c
jmp 0x498bd6
mov ebx, dword [ebp - 0x30]
test ebx, ebx
jb 0x498bd6
inc ebx
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0xc]
mov al, byte [eax]
mov edx, dword [ebp - 8]
mov byte [edx + 2], al
mov eax, dword [ebp - 0xc]
mov al, byte [eax + 1]
mov edx, dword [ebp - 8]
mov byte [edx + 1], al
mov eax, dword [ebp - 0xc]
mov al, byte [eax + 2]
mov edx, dword [ebp - 8]
mov byte [edx], al
add dword [ebp - 8], 3
add dword [ebp - 0xc], 4
inc dword [ebp - 0x20]
dec ebx
jne 0x498974
jmp 0x498bd6
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
dec eax
je 0x4989c8
dec eax
je 0x498a0b
dec eax
je 0x498ab0
dec eax
je 0x498afe
jmp 0x498bd6
mov ebx, dword [ebp - 0x30]
test ebx, ebx
jb 0x498bd6
inc ebx
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0xc]
mov ax, word [eax]
shr ax, 8
mov edx, dword [ebp - 8]
mov byte [edx], al
inc dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov al, byte [eax]
and al, 0xff
mov edx, dword [ebp - 8]
mov byte [edx], al
inc dword [ebp - 8]
add dword [ebp - 0xc], 2
inc dword [ebp - 0x20]
dec ebx
jne 0x4989db
jmp 0x498bd6
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
cmp dword [eax + 0xc], 0
je 0x498a6d
mov ebx, dword [ebp - 0x30]
test ebx, ebx
jb 0x498bd6
inc ebx
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0xc]
mov ax, word [eax]
shr ax, 8
mov edx, dword [ebp - 8]
mov byte [edx], al
inc dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov al, byte [eax]
and al, 0xff
mov edx, dword [ebp - 8]
mov byte [edx], al
inc dword [ebp - 8]
add dword [ebp - 0xc], 2
mov eax, dword [ebp - 0xc]
mov al, byte [eax]
and al, 0xff
mov edx, dword [ebp - 4]
mov byte [edx], al
inc dword [ebp - 4]
add dword [ebp - 0xc], 2
inc dword [ebp - 0x20]
dec ebx
jne 0x498a2a
jmp 0x498bd6
mov ebx, dword [ebp - 0x30]
test ebx, ebx
jb 0x498bd6
inc ebx
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0xc]
mov ax, word [eax]
shr ax, 8
mov edx, dword [ebp - 8]
mov byte [edx], al
inc dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov al, byte [eax]
and al, 0xff
mov edx, dword [ebp - 8]
mov byte [edx], al
inc dword [ebp - 8]
add dword [ebp - 0xc], 4
inc dword [ebp - 0x20]
dec ebx
jne 0x498a80
jmp 0x498bd6
mov ebx, dword [ebp - 0x30]
test ebx, ebx
jb 0x498bd6
inc ebx
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0xc]
mov al, byte [eax]
and al, 0xff
mov edx, dword [ebp - 8]
mov byte [edx + 2], al
mov eax, dword [ebp - 0xc]
mov al, byte [eax + 2]
and al, 0xff
mov edx, dword [ebp - 8]
mov byte [edx + 1], al
mov eax, dword [ebp - 0xc]
mov al, byte [eax + 4]
and al, 0xff
mov edx, dword [ebp - 8]
mov byte [edx], al
add dword [ebp - 8], 3
add dword [ebp - 0xc], 6
inc dword [ebp - 0x20]
dec ebx
jne 0x498ac3
jmp 0x498bd6
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
cmp dword [eax + 0xc], 0
je 0x498b68
mov ebx, dword [ebp - 0x30]
test ebx, ebx
jb 0x498bd6
inc ebx
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0xc]
mov al, byte [eax]
and al, 0xff
mov edx, dword [ebp - 8]
mov byte [edx + 2], al
mov eax, dword [ebp - 0xc]
mov al, byte [eax + 2]
and al, 0xff
mov edx, dword [ebp - 8]
mov byte [edx + 1], al
mov eax, dword [ebp - 0xc]
mov al, byte [eax + 4]
and al, 0xff
mov edx, dword [ebp - 8]
mov byte [edx], al
add dword [ebp - 8], 3
add dword [ebp - 0xc], 6
mov eax, dword [ebp - 0xc]
mov al, byte [eax]
and al, 0xff
mov edx, dword [ebp - 4]
mov byte [edx], al
inc dword [ebp - 4]
add dword [ebp - 0xc], 2
inc dword [ebp - 0x20]
dec ebx
jne 0x498b1d
jmp 0x498bd6
mov ebx, dword [ebp - 0x30]
test ebx, ebx
jb 0x498bd6
inc ebx
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0xc]
mov al, byte [eax]
and al, 0xff
mov edx, dword [ebp - 8]
mov byte [edx + 2], al
mov eax, dword [ebp - 0xc]
mov al, byte [eax + 2]
and al, 0xff
mov edx, dword [ebp - 8]
mov byte [edx + 1], al
mov eax, dword [ebp - 0xc]
mov al, byte [eax + 4]
and al, 0xff
mov edx, dword [ebp - 8]
mov byte [edx], al
add dword [ebp - 8], 3
add dword [ebp - 0xc], 8
inc dword [ebp - 0x20]
dec ebx
jne 0x498b77
jmp 0x498bd6
lea edx, [ebp - 0xb4]
mov eax, 0x49717c
call fcn.00406ec8
mov ecx, dword [ebp - 0xb4]
mov dl, 1
mov eax, dword [0x4095d4]
call fcn.0040f6dc
call fcn.00404618
mov eax, dword [0x5a47f0]
cmp word [eax + 2], 0
je 0x498bfe
cmp dword [ebp - 0x2c], 0
jle 0x498bfe
imul eax, dword [ebp - 0x24], 0x64
xor edx, edx
div dword [ebp - 0x2c]
mov edx, eax
mov ebx, dword [0x5a47f0]
mov eax, dword [ebx + 4]
call dword [ebx]
inc dword [ebp - 0x24]
dec esi
jne 0x4984de
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x498c2d
mov eax, dword [ebp - 0x3c]
call fcn.00402858
mov eax, dword [ebp - 0x38]
call fcn.00402858
ret
cmp byte [ebp - 0x45], 0
je 0x498c82
mov eax, dword [ebp + 8]
mov edx, dword [eax + 8]
lea eax, [ebp - 0x80]
call fcn.00498034
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
cmp dword [eax + 0xc], 0
je 0x498c82
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [eax + 0xc]
lea eax, [ebp - 0x9c]
call fcn.00498034
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x498cea
mov ebx, 7
lea eax, [ebp - 0x80]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
cmp dword [eax], 0
je 0x498cac
mov eax, dword [ebp - 0x64]
mov eax, dword [eax]
call fcn.00402858
add dword [ebp - 0x64], 4
dec ebx
jne 0x498c9a
mov ebx, 7
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
cmp dword [eax], 0
je 0x498cd3
mov eax, dword [ebp - 0x64]
mov eax, dword [eax]
call fcn.00402858
add dword [ebp - 0x64], 4
dec ebx
jne 0x498cc1
mov eax, dword [ebp - 0x1c]
call fcn.00403e4c
ret