Function at 0x401fa0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x2818
call fcn.0040daa0
mov eax, dword [0x4175b0]
xor eax, esp
mov dword [esp + 0x2814], eax
mov eax, dword [esp + 0x281c]
push ebx
push esi
push edi
mov edi, dword [str.j_hH_A]
push 0
mov esi, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
call edi
push 0
push 0
push 0
push 0
push 0x414fec
call dword [0x413188]
mov ebx, eax
mov dword [esp + 0x1c], ebx
test ebx, ebx
jne 0x40200b
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2814]
xor ecx, esp
call fcn.00405732
add esp, 0x2818
ret
push ebp
push 0
push 0x84003000
push 0
push 0
push esi
push ebx
call dword [0x41318c]
mov ebp, eax
test ebp, ebp
jne 0x402033
push ebx
call dword [0x413184]
xor eax, eax
jmp 0x4021e4
mov esi, 0x2800
push esi
lea edx, [esp + 0x28]
push 0
push edx
call fcn.00407bd0
add esp, 0xc
call fcn.00405c6e
push 0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0x13
push ebp
mov dword [esp + 0x24], esi
call dword [0x413190]
test eax, eax
je 0x402084
cmp byte [esp + 0x24], 0x32
je 0x402084
mov esi, dword [0x413184]
push ebp
call esi
push ebx
call esi
xor eax, eax
jmp 0x4021e4
push esi
lea edx, [esp + 0x28]
push 0
push edx
call fcn.00407bd0
add esp, 0xc
push 0
call edi
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x1c]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4020a5
sub eax, edx
je 0x4020fe
push 0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 1
push ebp
call dword [0x413190]
test eax, eax
je 0x4020fe
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4020d0
sub eax, edx
push eax
lea edx, [esp + 0x28]
push esi
push edx
call fcn.00410793
add esp, 0xc
test eax, eax
je 0x4020fe
mov esi, dword [0x413184]
push ebp
call esi
push ebx
xor ebp, ebp
call esi
mov dword [esp + 0x20], ebp
xor esi, esi
mov dword [esp + 0x14], esi
call fcn.00405c6e
push esi
call edi
push esi
mov dword [esp + 0x14], 0x2800
call edi
push esi
call edi
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x28]
push esi
push ecx
call fcn.00407bd0
mov edx, dword [esp + 0x24]
push 0x19000
push esi
push edx
call fcn.00407bd0
add esp, 0x18
push esi
call edi
mov ecx, dword [esp + 0x10]
mov ebx, dword [0x413194]
lea eax, [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0x2c]
push edx
push ebp
call ebx
test eax, eax
je 0x4021c0
lea esp, [esp]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4021c0
lea edi, [esi + ecx]
cmp edi, 0x19000
ja 0x4021c0
mov eax, ecx
cmp ecx, 1
jb 0x40218e
lea ebx, [ebx]
mov dl, byte [esp + eax + 0x23]
xor byte [esp + eax + 0x24], dl
dec eax
cmp eax, 1
jae 0x402180
xor byte [esp + 0x24], 0x12
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x28]
push eax
add ecx, esi
push ecx
call fcn.0040a210
mov eax, dword [esp + 0x1c]
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0x2c]
push ecx
push ebp
mov esi, edi
call ebx
test eax, eax
jne 0x402160
test ebp, ebp
je 0x4021d0
push ebp
call dword [0x413184]
call fcn.00405c6e
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4021df
push eax
call dword [0x413184]
mov eax, 1
mov ecx, dword [esp + 0x2824]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00405732
add esp, 0x2818
ret