Function at 0x418100
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
push ebx
push esi
push edi
lea eax, [esp + 0xc]
mov dword [esp + 0x1c], edx
push eax
push 0
push 0
push 5
mov dword [esp + 0x28], ecx
call dword [0x4250c8]
mov esi, dword [esp + 0xc]
push esi
push 8
push dword [0x425ba8]
call dword [0x425358]
mov dword [esp + 0x68], eax
test eax, eax
jne 0x418165
push 0x80
call dword [0x425428]
push esi
push 8
push dword [0x425ba8]
call dword [0x425358]
mov dword [esp + 0x68], eax
test eax, eax
je 0x418143
lea ecx, [esp + 0xc]
push ecx
push dword [esp + 0x10]
push eax
push 5
call dword [0x4250c8]
test eax, eax
jne 0x4184b4
mov edi, dword [esp + 0x68]
mov ebx, edi
add edi, dword [edi]
mov eax, dword [ebx + 0x44]
push eax
push 0
push 0x400
mov dword [esp + 0x80], eax
call dword [0x425404]
mov esi, eax
test esi, esi
je 0x4183b0
lea eax, [esp + 0x10]
push eax
push 0xa
push esi
call dword [0x42521c]
test eax, eax
je 0x4183a9
lea eax, [esp + 0xc]
push eax
push 0x38
lea eax, [esp + 0x80]
push eax
push 0xa
push dword [esp + 0x20]
call dword [0x42502c]
test eax, eax
je 0x41839f
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x80], eax
jne 0x418312
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x84], eax
jne 0x418312
lea eax, [esp + 0x6c]
mov dword [esp + 0x6c], 0
push eax
push 2
push 2
push 0
push 0x2000000
push dword [esp + 0x24]
call dword [0x4251e4]
test eax, eax
je 0x41839f
mov ecx, dword [0x425a48]
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x22], 0xbf00e9
mov dword [esp + 0x26], 0xe900e4
mov dword [ecx*4 + 0x425a50], eax
inc ecx
mov dword [0x425a48], ecx
xor eax, eax
mov ecx, 0xcc
mov dword [esp + 0x2a], 0xb900a0
mov dword [esp + 0x2e], 0xec00e5
mov dword [esp + 0x32], 0xa30098
mov dword [esp + 0x36], 0xa900a7
mov dword [esp + 0x3a], 0xec00a2
mov dword [esp + 0x3e], 0xb90088
mov dword [esp + 0x42], 0xa000bc
mov dword [esp + 0x46], 0xaf00a5
mov dword [esp + 0x4a], 0xb800ad
mov dword [esp + 0x4e], 0xa800a9
mov dword [esp + 0x52], 0xb000ec
mov dword [esp + 0x56], 0xe900ec
mov dword [esp + 0x5a], 0xb900a0
mov dword [esp + 0x5e], 0xe900e1
mov dword [esp + 0x62], 0xb900a0
mov word [esp + 0x66], cx
lea ebx, [ebx]
xor word [esp + eax*2 + 0x22], cx
inc eax
cmp eax, 0x23
jb 0x4182e0
push dword [esp + 0x18]
lea eax, [esp + 0x26]
push dword [esp + 0x20]
push dword [esp + 0x7c]
push dword [ebx + 0x3c]
push eax
push 0
call fcn.0040b980
add esp, 0x18
push dword [esp + 0x10]
jmp 0x4184a7
lea eax, [esp + 0xc]
mov dword [esp + 0x14], 0
push eax
push 4
lea eax, [esp + 0x1c]
push eax
push 0x13
push dword [esp + 0x20]
call dword [0x42502c]
test eax, eax
je 0x41839f
lea eax, [esp + 0xc]
push eax
push 0x38
lea eax, [esp + 0x80]
push eax
push 0xa
push dword [esp + 0x24]
call dword [0x42502c]
test eax, eax
je 0x418395
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x80], eax
jne 0x418395
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x84], eax
jne 0x418395
lea eax, [esp + 0x70]
mov dword [esp + 0x70], 0
push eax
push 2
push 2
push 0
push 0x2000000
push dword [esp + 0x28]
call dword [0x4251e4]
test eax, eax
jne 0x4183be
push dword [esp + 0x14]
call dword [0x4251e0]
push dword [esp + 0x10]
call dword [0x4251e0]
push esi
call dword [0x4251e0]
cmp dword [ebx], 0
jne 0x418183
jmp 0x4184b4
mov ecx, dword [0x425a48]
mov eax, dword [esp + 0x70]
mov dword [esp + 0x22], 0xbf00e9
mov dword [esp + 0x26], 0xe900e4
mov dword [ecx*4 + 0x425a50], eax
inc ecx
mov dword [0x425a48], ecx
xor eax, eax
mov ecx, 0xcc
mov dword [esp + 0x2a], 0xb900a0
mov dword [esp + 0x2e], 0xec00e5
mov dword [esp + 0x32], 0xa30098
mov dword [esp + 0x36], 0xa900a7
mov dword [esp + 0x3a], 0xec00a2
mov dword [esp + 0x3e], 0xb90088
mov dword [esp + 0x42], 0xa000bc
mov dword [esp + 0x46], 0xaf00a5
mov dword [esp + 0x4a], 0xb800ad
mov dword [esp + 0x4e], 0xa800a9
mov dword [esp + 0x52], 0xb000ec
mov dword [esp + 0x56], 0xe900ec
mov dword [esp + 0x5a], 0xb900a0
mov dword [esp + 0x5e], 0xe900e1
mov dword [esp + 0x62], 0xb900a0
mov word [esp + 0x66], cx
lea ebx, [ebx]
xor word [esp + eax*2 + 0x22], cx
inc eax
cmp eax, 0x23
jb 0x418470
push dword [esp + 0x18]
lea eax, [esp + 0x26]
push dword [esp + 0x20]
push dword [esp + 0x7c]
push dword [ebx + 0x3c]
push eax
push 0
call fcn.0040b980
add esp, 0x18
push dword [esp + 0x10]
call dword [0x4251e0]
push dword [esp + 0x14]
call dword [0x4251e0]
push esi
call dword [0x4251e0]
push dword [esp + 0x68]
push 0
push dword [0x425ba8]
call dword [0x425290]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret