Function at 0x417fc0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x290
push ebx
mov ebx, dword [esp + 0x2a0]
test ebx, ebx
push esi
je 0x4181e7
mov eax, dword [esp + 0x2c4]
test al, 1
je 0x4181e7
mov dl, byte [esp + 0x2ba]
mov cl, bh
shr cl, 3
and cl, 0x10
and dl, 0x10
xor cl, dl
je 0x4181e7
cmp word [0x7378d0], 0x96fe
je 0x4181e7
mov ecx, dword [0x78ca5c]
test ecx, ecx
jne 0x4181e7
and eax, 0x3f
cmp al, 0x11
jne 0x4181e7
push edi
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x9c]
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], 0x36edbd2e
mov dword [esp + 0x10], 0x73fabb0f
mov dword [esp + 0x14], 0x62fbbc1d
mov dword [esp + 0x18], 0x72eda71f
mov dword [esp + 0x1c], 0x64eda35a
mov dword [esp + 0x20], 0x78e7bc09
mov dword [esp + 0x24], 0x78e9b65a
mov dword [esp + 0x28], 0x7ae6ba5a
mov dword [esp + 0x2c], 0x64ebf503
mov dword [esp + 0x30], 0x73fcb41f
mov dword [esp + 0x34], 0x36faba5a
mov dword [esp + 0x38], 0x62e1b11f
mov dword [esp + 0x3c], 0x73e0a15a
mov dword [esp + 0x40], 0x7ae1b35a
mov dword [esp + 0x44], 0x7efff51f
mov dword [esp + 0x48], 0x36e0b613
mov dword [esp + 0x4c], 0x65edba1e
mov dword [esp + 0x50], 0x62e7bb5a
mov dword [esp + 0x54], 0x75f0b05a
mov dword [esp + 0x58], 0x36ecb01f
mov dword [esp + 0x5c], 0x36edbd0e
mov dword [esp + 0x60], 0x73f2bc09
mov dword [esp + 0x64], 0x36eeba5a
mov dword [esp + 0x68], 0x5bb8e549
mov dword [esp + 0x6c], 0x79dcf554
mov dword [esp + 0x70], 0x7beda75a
mov dword [esp + 0x74], 0x36eda315
mov dword [esp + 0x78], 0x65e1bd0e
mov dword [esp + 0x7c], 0x7be1b95a
mov dword [esp + 0x80], 0x62e9a113
mov dword [esp + 0x84], 0x3ae6ba13
mov dword [esp + 0x88], 0x73e4a55a
mov dword [esp + 0x8c], 0x36eda61b
mov dword [esp + 0x90], 0x7fefb008
mov dword [esp + 0x94], 0x64eda109
mov dword [esp + 0x98], 0x1688d554
pop edi
mov ecx, dword [esp + eax + 8]
add eax, 4
xor ecx, 0x1688d57a
cmp eax, 0x90
mov dword [esp + eax + 0x94], ecx
jl 0x41816f
mov edx, dword [0x748004]
push 0x40000
push 0
push edx
lea eax, [esp + 0xa4]
push 0xffffffffffffffff
push eax
call fcn.0042b5a0
mov eax, dword [0x78ca5c]
add esp, 0x14
test eax, eax
jne 0x4181c4
mov ecx, dword [0x748004]
push 0x10
push ecx
call fcn.004f3450
add esp, 8
push 0
push 0
push 0x671120
call fcn.004f6430
or eax, 0x80000000
push 0
push eax
push 0x671120
call fcn.004f6640
add esp, 0x18
mov esi, dword [esp + 0x29c]
push esi
call fcn.00417e50
mov edx, dword [esp + 0x2c8]
mov eax, dword [esp + 0x2c4]
mov ecx, dword [esp + 0x2c0]
push edx
mov edx, dword [esp + 0x2c0]
push eax
mov eax, dword [esp + 0x2c0]
push ecx
mov ecx, dword [esp + 0x2c0]
push edx
mov edx, dword [esp + 0x2c0]
push eax
mov eax, dword [esp + 0x2c0]
push ecx
mov ecx, dword [esi + 0x141c]
push edx
push eax
mov eax, dword [0x750018]
mov edx, dword [ecx]
push ebx
push 1
push edx
push 0
push eax
push esi
call fcn.0041c4c0
add esp, 0x3c
cmp eax, 1
pop esi
pop ebx
je 0x418262
or eax, 0xffffffff
add esp, 0x290
ret
mov edx, dword [0x750018]
mov eax, dword [esp + 0x298]
inc edx
test eax, eax
mov dword [0x750018], edx
je 0x418296
mov eax, dword [eax + 4]
test eax, eax
je 0x418296
push 0
push 0x800
call eax
add esp, 8
xor eax, eax
add esp, 0x290
ret
push 0
push 0x800
call fcn.004a88c0
add esp, 8
xor eax, eax
add esp, 0x290
ret