Function at 0x414450
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x459b2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
mov eax, dword [0x47b258]
xor eax, dword [esp + 0x78]
push ebx
push ebp
push esi
mov dword [esp + 0x74], eax
push edi
mov ebp, ecx
lea eax, [esp + 0x8c]
lea edi, [ebp + 4]
push eax
mov ecx, edi
mov dword [esp + 0x88], 0
call fcn.00413b20
mov eax, dword [edi]
push 0x45d66d
push eax
call fcn.0043ef8d
add esp, 8
test eax, eax
jne 0x4144b4
mov byte [ebp + 8], al
jmp 0x414755
lea ecx, [ebp + 0x1c]
call fcn.0040b620
mov eax, dword [edi]
push 0
push ecx
sub eax, 0x10
mov dword [esp + 0x20], esp
mov esi, esp
push eax
call fcn.00406c40
add eax, 0x10
add esp, 4
mov ecx, ebp
mov dword [esi], eax
call fcn.00413fd0
mov ebx, eax
mov eax, dword [ebx]
push 4
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebx
call dword [eax + 0x34]
mov eax, dword [esp + 0x14]
test eax, eax
mov dword [esp + 0x10], 0
jle 0x41465c
push 0x1c
call fcn.0044b938
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
test esi, esi
mov byte [esp + 0x84], 1
je 0x414548
mov ecx, esi
call fcn.0042e7f0
mov byte [esp + 0x84], 2
mov dword [esi], 0x468f38
call fcn.0044baca
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x10], eax
jmp 0x41454a
xor esi, esi
mov eax, dword [ebx]
push 0x58
lea ecx, [esp + 0x24]
push ecx
mov ecx, ebx
mov byte [esp + 0x8c], 0
call dword [eax + 0x34]
mov al, byte [esp + 0x20]
test al, al
jns 0x41457b
xor eax, eax
lea ebx, [ebx]
xor byte [esp + eax + 0x20], 0xcc
inc eax
cmp eax, 0x50
jl 0x414570
lea eax, [esp + 0x20]
lea edi, [esi + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x414585
sub eax, edx
push eax
lea edx, [esp + 0x24]
push edx
mov ecx, edi
call fcn.004021e0
mov eax, dword [esp + 0x70]
mov dword [esi + 0x14], eax
mov ecx, dword [esp + 0x74]
mov dword [esi + 0x18], ecx
push esi
lea ecx, [ebp + 0x1c]
call fcn.00401210
mov edx, dword [0x47c170]
mov al, byte [edx + 8]
test al, al
jne 0x414647
mov eax, dword [esi + 0x18]
mov ecx, dword [edi]
push eax
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.WAD_contents:__s___d_bytes_
call fcn.00402330
mov eax, dword [0x47c170]
lea edx, [esp + 0x24]
push edx
push eax
call fcn.0042d5b0
add esp, 0x14
mov ecx, dword [eax]
push ecx
push str.FileManager::useWad
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str._s__:__s
mov byte [esp + 0x94], 3
call fcn.00402330
mov edx, dword [0x47c170]
mov eax, dword [edx + 4]
push eax
call fcn.0041fdb0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0x10
mov byte [esp + 0x84], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414647
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x414503
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax + 4]
mov al, byte [ebp + 0x2c]
test al, al
mov byte [ebp + 8], 1
je 0x414755
mov eax, dword [ebp + 4]
lea esi, [ebp + 0x28]
push esi
push ecx
sub eax, 0x10
mov dword [esp + 0x24], esp
mov edi, esp
push eax
call fcn.00406c40
add eax, 0x10
add esp, 4
mov ecx, ebp
mov dword [edi], eax
call fcn.00413fd0
mov ecx, dword [esi]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.Loading_WAD_data_into_memory___d_bytes_.
mov edi, eax
call fcn.00402330
mov eax, dword [0x47c170]
lea edx, [esp + 0x20]
push edx
push eax
call fcn.0042d5b0
add esp, 0x10
mov ecx, dword [eax]
push ecx
push str.FileManager::useWad
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str._s__:__s
mov byte [esp + 0x94], 4
call fcn.00402330
mov edx, dword [0x47c170]
mov eax, dword [edx + 4]
push eax
call fcn.0041fdb0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0x10
mov byte [esp + 0x84], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41471c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x414733
push eax
call fcn.0044b963
add esp, 4
mov dword [ebp + 0x24], 0
mov eax, dword [esi]
push eax
call fcn.0044b968
mov ecx, dword [esi]
add esp, 4
push ecx
mov dword [ebp + 0x24], eax
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x34]
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx + 4]
mov eax, dword [esp + 0x8c]
add eax, 0xfffffff0
mov dword [esp + 0x84], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414781
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x78]
xor ecx, dword [esp + 0x88]
call fcn.0043ec3e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret 4