Function at 0x4ee2ba
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 8]
mov edx, dword [ebx]
test dword [edx + 0x18], 0x80000
movzx eax, byte [ebx + 0x1b6]
mov dword [ebp - 8], edx
mov dword [ebp - 0x24], eax
je 0x4ee954
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, dword [edi + 0x40]
mov eax, 0xfff0bdc0
mov dword [ebp - 0xc], eax
test esi, esi
je 0x4ee31a
xor eax, eax
mov dword [ebp - 0xc], eax
cmp dword [edx + 0x14], eax
jle 0x4ee31a
mov ecx, dword [edx + 0x10]
add ecx, 0xc
lea ebx, [ebx]
cmp dword [ecx], esi
je 0x4ee317
inc eax
add ecx, 0x10
cmp eax, dword [edx + 0x14]
jl 0x4ee30a
mov dword [ebp - 0xc], eax
mov ecx, dword [edx + 0x10]
add eax, eax
mov esi, dword [ecx + eax*8]
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], eax
test eax, eax
je 0x4ee4dd
jmp 0x4ee33d
mov esi, dword [ebp - 0x20]
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 0x18], eax
je 0x4ee381
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov ecx, dword [edi]
push eax
push ecx
call fcn.0049c25b
add esp, 8
test eax, eax
je 0x4ee381
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp - 4]
push edx
push edi
mov edi, dword [ebp + 0x18]
call fcn.004a5021
add esp, 8
test eax, eax
je 0x4ee4c9
mov esi, dword [ebp - 0x20]
cmp byte [ebx + 0x1b6], 0
mov eax, dword [ebp - 4]
je 0x4ee3a5
mov ecx, dword [eax + 8]
mov edx, dword [ebp - 8]
push esi
push ecx
push edx
call fcn.004a3e95
add esp, 0xc
mov edi, eax
jmp 0x4ee570
mov edi, dword [eax + 8]
mov eax, dword [ebx]
cmp byte [eax + 0x91], 0
jne 0x4ee529
lea ecx, [ebx + 4]
push ecx
push eax
call fcn.0050c78d
add esp, 8
test eax, eax
je 0x4ee529
inc dword [ebx + 0x40]
mov dword [ebx + 0xc], eax
xor edi, edi
cmp dword [ebp - 0x24], 0
je 0x4ee952
mov eax, dword [ebp - 8]
cmp byte [eax + 0x41], 0
jne 0x4ee952
test edi, edi
jne 0x4ee4c9
mov eax, ebx
call fcn.004b5e29
mov ecx, dword [ebp - 4]
mov edi, eax
mov eax, dword [ecx + 0x14]
mov edx, dword [edi + 0x20]
lea edx, [eax + edx + 1]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], 0
test eax, eax
jle 0x4ee47d
add ecx, 0x24
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
mov ebx, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
mov edx, dword [ebp + 0x10]
lea esi, [ecx + edx + 1]
cmp dword [eax + 0x54], ebx
jg 0x4ee441
push edi
call fcn.004ac428
add esp, 4
test eax, eax
jne 0x4ee467
mov edx, dword [edi + 4]
inc dword [edi + 0x20]
lea ecx, [ebx + ebx*4]
lea eax, [edx + ecx*4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 4], esi
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0x4c
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
add dword [ebp - 0x1c], 8
inc eax
mov dword [ebp - 0x18], eax
cmp eax, dword [edx + 0x14]
jl 0x4ee41d
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0x18]
mov esi, dword [edi + 0x20]
mov edx, dword [edi + 0x18]
mov dword [ebp - 0x1c], ecx
cmp dword [edx + 0x54], esi
jg 0x4ee49f
push edi
call fcn.004ac428
add esp, 4
test eax, eax
jne 0x4ee4c9
mov ecx, dword [edi + 4]
inc dword [edi + 0x20]
mov edx, dword [ebp - 0x1c]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 8], 0xffffffff
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0x86
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
test eax, eax
jne 0x4ee33a
mov ebx, dword [edi + 0x40]
mov esi, dword [ebx + 0x44]
mov edx, dword [edi]
mov dword [ebp - 0x28], edx
test esi, esi
je 0x4ee711
mov cl, byte [edx]
xor eax, eax
test cl, cl
je 0x4ee516
mov edi, edi
movzx ecx, cl
movzx ecx, byte [ecx + 0x53ba18]
lea edi, [eax*8]
xor ecx, edi
inc edx
xor eax, ecx
mov cl, byte [edx]
test cl, cl
jne 0x4ee4fa
xor edx, edx
div dword [ebx + 0x38]
mov ebx, dword [esi + edx*8]
lea eax, [esi + edx*8]
mov esi, dword [eax + 4]
jmp 0x4ee717
mov edx, dword [ebx]
push esi
push edi
push edx
call fcn.004a3e95
add esp, 0xc
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x4ee56d
push edi
test esi, esi
je 0x4ee557
push esi
push str.no_such_table
push str._s:__s._s
call fcn.004bd8f8
add esp, 0x10
jmp 0x4ee569
push str.no_such_table
push str._s:__s
call fcn.004bd8f8
add esp, 0xc
mov byte [ebx + 0x11], 1
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x4ee3d4
mov esi, dword [ebp - 4]
lea eax, [ebp - 0x14]
push eax
push esi
push edi
push ebx
lea eax, [ebp - 0x18]
call fcn.004c3c56
add esp, 0x10
test eax, eax
jne 0x4ee3d4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4ee5a1
mov dword [ebp - 0x10], eax
jmp 0x4ee5ad
mov ecx, dword [esi + 0x24]
lea edx, [ebp - 0x28]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
xor esi, esi
cmp dword [eax + 0x14], esi
jle 0x4ee622
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
movsx edx, word [edx + 0x20]
cmp dword [eax + esi*4], edx
jne 0x4ee5d0
mov dword [eax + esi*4], 0xffffffff
mov edx, dword [ebp - 8]
cmp dword [edx + 0x11c], 0
je 0x4ee619
test ecx, ecx
je 0x4ee5e9
mov eax, dword [ecx + 4]
movsx eax, word [eax + esi*2]
jmp 0x4ee5ed
movsx eax, word [edi + 0x20]
mov edx, dword [edi + 4]
lea ecx, [eax + eax*2]
mov eax, dword [edx + ecx*8]
mov ecx, dword [ebp - 0xc]
mov edx, dword [edi]
push ecx
push eax
push edx
mov eax, ebx
call fcn.004c1099
xor ecx, ecx
add esp, 0xc
cmp eax, 2
mov eax, dword [ebp - 0x10]
sete cl
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
inc esi
cmp esi, dword [edx + 0x14]
jl 0x4ee5bd
mov eax, dword [edi]
mov ecx, dword [edi + 0x1c]
mov edx, dword [ebp - 0xc]
push eax
push 0
push ecx
push edx
mov eax, ebx
call fcn.004aefb7
mov eax, dword [ebp + 0x10]
inc dword [ebx + 0x44]
mov esi, dword [ebp - 4]
add esp, 0x10
test eax, eax
je 0x4ee664
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0xc]
push 0xffffffffffffffff
push eax
mov eax, dword [ebp - 0x14]
push edx
push esi
push eax
push edi
push ecx
push ebx
call fcn.004de2e8
add esp, 0x24
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x4ee6b7
mov eax, dword [ebx + 0x198]
test eax, eax
jne 0x4ee677
mov eax, ebx
mov eax, dword [eax + 0x210]
test eax, eax
je 0x4ee699
mov eax, dword [eax]
cmp eax, dword [esi + 0x1c]
jne 0x4ee68e
cmp byte [esi + 0x19], 7
je 0x4ee6b7
cmp eax, dword [esi + 0x20]
jne 0x4ee699
cmp byte [esi + 0x1a], 7
je 0x4ee6b7
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
push edx
mov edx, dword [ebp - 0xc]
push 1
push ecx
mov ecx, dword [ebp - 0x14]
push eax
push esi
push ecx
push edi
push edx
push ebx
call fcn.004de2e8
add esp, 0x24
cmp dword [ebp - 0x18], 0
je 0x4ee4c9
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x208], 0
mov eax, dword [ebp - 0x18]
je 0x4ee6da
call fcn.0049bf83
jmp 0x4ee4c9
cmp eax, dword [ecx + 0x114]
jb 0x4ee703
cmp eax, dword [ecx + 0x118]
jae 0x4ee703
mov edx, dword [ecx + 0x110]
mov dword [eax], edx
dec dword [ecx + 0xfc]
mov dword [ecx + 0x110], eax
jmp 0x4ee4c9
push eax
call fcn.0049bf1c
add esp, 4
jmp 0x4ee4c9
mov esi, dword [ebx + 0x40]
mov ebx, dword [ebx + 0x3c]
test ebx, ebx
je 0x4ee952
mov edi, dword [ebp - 0x28]
mov edx, dword [esi + 0xc]
push edi
push edx
dec ebx
call fcn.0049c25b
add esp, 8
test eax, eax
je 0x4ee741
mov esi, dword [esi]
test ebx, ebx
jne 0x4ee722
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [esi + 8]
mov dword [ebp - 4], esi
test esi, esi
je 0x4ee952
mov eax, dword [ebp + 0x18]
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
cmp eax, ecx
je 0x4ee77a
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0xc]
push ecx
push eax
mov eax, dword [ebp - 4]
push edx
call fcn.004a5062
add esp, 0xc
test eax, eax
je 0x4ee941
mov eax, dword [ebp - 4]
cmp byte [eax + 0x18], 0
jne 0x4ee7a5
mov ecx, dword [ebp - 8]
test dword [ecx + 0x18], 0x1000000
jne 0x4ee7a5
mov eax, dword [ebp + 8]
cmp dword [eax + 0x198], 0
jne 0x4ee7a5
cmp byte [eax + 0x14], 0
je 0x4ee941
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x1c]
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
lea eax, [ebp - 0x18]
call fcn.004c3c56
add esp, 0x10
test eax, eax
je 0x4ee7e0
cmp dword [ebp - 0x24], 0
je 0x4ee952
mov eax, dword [ebp - 8]
cmp byte [eax + 0x41], 0
jne 0x4ee952
jmp 0x4ee941
mov esi, dword [ebp - 8]
push 0
push 0x58
call fcn.004a887f
mov ebx, dword [ebp - 0x18]
mov edi, eax
add esp, 8
test edi, edi
je 0x4ee8fa
push 0x58
push 0
push edi
call fcn.00402e70
mov dword [edi + 4], 1
mov ecx, dword [edi]
push ecx
push 1
push esi
mov eax, edi
call fcn.004afd18
add esp, 0x18
cmp byte [esi + 0x41], 0
mov edi, eax
je 0x4ee832
push edi
mov eax, esi
call fcn.004a4771
jmp 0x4ee8f7
mov eax, dword [edi]
mov esi, dword [ebp - 4]
mov ebx, dword [ebp + 8]
lea edx, [eax + eax*4]
add edx, edx
lea eax, [edi + edx*8 - 0x48]
xor edx, edx
mov dword [eax + 8], edx
mov dword [eax + 4], edx
mov eax, dword [esi]
mov dword [edi + 0x18], eax
mov ecx, dword [esi]
mov eax, dword [ecx]
mov dword [edi + 0x10], eax
mov eax, dword [edi + 0x18]
mov ecx, 1
add word [eax + 0x24], cx
mov eax, dword [ebx + 0x44]
mov dword [edi + 0x38], eax
mov eax, dword [ebp + 0x14]
add dword [ebx + 0x44], ecx
cmp eax, edx
je 0x4ee88d
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
push 0xffffffffffffffff
push eax
mov eax, dword [ebp + 0xc]
push ecx
push esi
push edx
push eax
push edi
push ebx
call fcn.004edc1d
add esp, 0x20
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4ee8e1
xor ecx, ecx
cmp dword [ebp + 0x18], ecx
push 1
setne cl
push eax
mov eax, dword [ebp - 0x18]
push eax
push esi
movzx edx, byte [ecx + esi + 0x19]
mov ecx, dword [ebp - 0x1c]
push ecx
mov dword [ebp - 0x28], edx
mov edx, dword [ebp + 0xc]
push edx
push edi
push ebx
call fcn.004edc1d
add esp, 0x20
cmp byte [esi + 0x18], 0
jne 0x4ee8e1
mov eax, dword [ebp - 0x28]
cmp eax, 9
je 0x4ee8e1
cmp eax, 7
je 0x4ee8e1
mov eax, dword [ebx + 0x198]
test eax, eax
je 0x4ee8dd
mov ebx, eax
mov byte [ebx + 0x15], 1
mov eax, dword [ebp - 8]
push edi
mov dword [edi + 0x10], 0
call fcn.004a4771
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 8]
add esp, 4
test ebx, ebx
je 0x4ee941
cmp dword [esi + 0x208], 0
je 0x4ee912
mov eax, ebx
mov ecx, esi
call fcn.0049bf83
jmp 0x4ee941
cmp ebx, dword [esi + 0x114]
jb 0x4ee938
cmp ebx, dword [esi + 0x118]
jae 0x4ee938
mov eax, dword [esi + 0x110]
mov dword [ebx], eax
dec dword [esi + 0xfc]
mov dword [esi + 0x110], ebx
jmp 0x4ee941
push ebx
call fcn.0049bf1c
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0xc]
mov dword [ebp - 4], eax
test eax, eax
jne 0x4ee74f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret