Function at 0x42f55b
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0x244
mov eax, dword [0x596804]
xor eax, esp
mov dword [esp + 0x240], eax
mov eax, dword [esp + 0x250]
mov cl, byte [esp + 0x260]
push ebx
mov ebx, dword [esp + 0x24c]
push ebp
push esi
mov esi, dword [esp + 0x268]
push edi
mov edi, dword [esp + 0x264]
push edi
push eax
lea edx, [esp + 0x1d8]
mov dword [esp + 0x18], 0
push edx
mov dword [esp + 0x20], ebx
mov byte [esp + 0x1f], cl
call fcn.0046bc9b
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x268]
push 0x14
lea ecx, [esp + 0x13c]
push ecx
mov dword [esp + edi + 0x1e4], eax
add edi, 4
push edi
lea edx, [esp + 0x1e8]
push edx
push ebp
push ebx
call fcn.0042f36b
mov eax, dword [esp + 0x150]
mov ecx, dword [esp + 0x154]
mov edx, dword [esp + 0x158]
mov dword [esi], eax
mov eax, dword [esp + 0x15c]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x160]
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x28c]
add esp, 0x24
mov dword [esi + 0x10], ecx
cmp eax, 1
jle 0x42f833
mov ebx, esi
lea edx, [esp + 0x140]
sub ebx, edx
dec eax
mov dword [esp + 0x10], eax
lea ecx, [ecx]
mov edi, dword [esp + 0x14]
mov esi, ebp
cmp ebp, 0x40
jle 0x42f688
lea eax, [esp + 0xd0]
push eax
call fcn.0043378b
lea ecx, [esp + 0xd4]
push ecx
mov edx, edi
push ebp
push edx
call fcn.004337cb
lea eax, [esp + 0xe0]
push eax
lea ecx, [esp + 0x1bc]
push ecx
call fcn.0043387b
add esp, 0x18
lea edi, [esp + 0x1a8]
mov esi, 0x14
lea edx, [esp + 0x18]
push edx
call fcn.0043378b
add esp, 4
xor eax, eax
test esi, esi
jle 0x42f6c6
mov ebp, edi
lea ecx, [esp + 0x168]
sub ebp, ecx
jmp 0x42f6ab
lea ecx, [esp + eax + 0x168]
mov dl, byte [ecx + ebp]
xor dl, 0x36
inc eax
mov byte [ecx], dl
cmp eax, esi
jl 0x42f6ab
mov ebp, dword [esp + 0x25c]
cmp esi, 0x40
jge 0x42f6e5
mov ecx, 0x40
sub ecx, esi
push ecx
lea eax, [esp + esi + 0x16c]
push 0x36
push eax
call fcn.0046c6ab
add esp, 0xc
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x16c]
push 0x40
push eax
call fcn.004337cb
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x13c]
push 0x14
push edx
call fcn.004337cb
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x1d8]
push ecx
call fcn.0043387b
lea edx, [esp + 0x94]
push edx
call fcn.0043378b
add esp, 0x24
xor eax, eax
test esi, esi
jle 0x42f759
lea ecx, [esp + 0x168]
sub edi, ecx
lea ecx, [esp + eax + 0x168]
mov dl, byte [edi + ecx]
xor dl, 0x5c
inc eax
mov byte [ecx], dl
cmp eax, esi
jl 0x42f73e
mov ebp, dword [esp + 0x25c]
cmp esi, 0x40
jge 0x42f778
mov ecx, 0x40
sub ecx, esi
push ecx
lea eax, [esp + esi + 0x16c]
push 0x5c
push eax
call fcn.0046c6ab
add esp, 0xc
lea edx, [esp + 0x74]
push edx
lea eax, [esp + 0x16c]
push 0x40
push eax
call fcn.004337cb
lea ecx, [esp + 0x80]
push ecx
lea edx, [esp + 0x1cc]
push 0x14
push edx
call fcn.004337cb
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x170]
push ecx
call fcn.0043387b
mov eax, dword [esp + 0x178]
mov edx, dword [esp + 0x174]
mov ecx, dword [esp + 0x17c]
mov dword [esp + 0x164], eax
mov eax, dword [esp + 0x184]
mov dword [esp + 0x160], edx
mov edx, dword [esp + 0x180]
add esp, 0x20
mov dword [esp + 0x150], eax
mov dword [esp + 0x148], ecx
mov dword [esp + 0x14c], edx
xor eax, eax
jmp 0x42f80b
mov dl, byte [esp + eax + 0x140]
lea ecx, [esp + eax + 0x140]
xor byte [ebx + ecx], dl
mov byte [esp + eax + 0x12c], dl
inc eax
cmp eax, 0x14
jl 0x42f80b
dec dword [esp + 0x10]
jne 0x42f63b
mov ecx, dword [esp + 0x250]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0046c68f
add esp, 0x244
ret