Function at 0x471848
Capabilities:
Authenticate hmac
Encode data using xor
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe78
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0xf8]
xor ecx, ecx
mov edx, 0x40
call fcn.00403114
mov eax, dword [ebp - 0xc]
call fcn.00404a88
cmp eax, 0x40
jle 0x471899
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
call fcn.0046b848
lea edx, [ebp - 0xf8]
mov eax, dword [ebp + 8]
mov ecx, 0x10
call fcn.00402a48
jmp 0x4718b6
mov eax, dword [ebp - 0xc]
call fcn.00404a88
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404c80
lea edx, [ebp - 0xf8]
pop ecx
call fcn.00402a48
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov al, byte [ebp + eax - 0xf8]
xor al, 0x36
mov edx, dword [ebp - 0x20]
mov byte [ebp + edx - 0x138], al
mov eax, dword [ebp - 0x20]
mov al, byte [ebp + eax - 0xf8]
xor al, 0x5c
mov edx, dword [ebp - 0x20]
mov byte [ebp + edx - 0x188], al
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], 0x40
jne 0x4718bb
mov dword [ebp - 0x28], 0x67452301
mov dword [ebp - 0x2c], 0xefcdab89
mov dword [ebp - 0x30], 0x98badcfe
mov dword [ebp - 0x34], 0x10325476
mov eax, dword [ebp - 8]
add eax, 0x40
shl eax, 3
xor edx, edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
lea eax, [ebp - 0xb8]
xor ecx, ecx
mov edx, 0x80
call fcn.00403114
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 8]
and eax, 0x3f
mov dword [ebp - 0x1c], eax
mov eax, 0x38
sub eax, dword [ebp - 0x1c]
test eax, eax
jg 0x471956
mov eax, 0x78
sub eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
jmp 0x471961
mov eax, 0x38
sub eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
mov byte [ebp + eax - 0xb8], 0x80
lea edx, [ebp - 0xb8]
mov eax, dword [ebp - 4]
add eax, dword [ebp - 8]
sub eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
call fcn.00402a48
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x1c]
lea eax, [ebp + eax - 0xb8]
mov edx, dword [ebp - 0x18]
mov dword [eax], edx
mov edx, dword [ebp - 0x14]
mov dword [eax + 4], edx
cmp dword [ebp - 0x20], 0
jne 0x4719ac
lea eax, [ebp - 0x138]
mov dword [ebp - 0x38], eax
jmp 0x4719de
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 8]
ja 0x4719c2
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x20]
sub eax, 0x40
mov dword [ebp - 0x38], eax
jmp 0x4719de
mov eax, dword [ebp - 8]
add eax, 0x40
cmp eax, dword [ebp - 0x20]
jb 0x4719d8
lea eax, [ebp - 0xb8]
mov dword [ebp - 0x38], eax
jmp 0x4719de
lea eax, [ebp - 0x78]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x38]
call fcn.0046a7b4
add dword [ebp - 0x20], 0x40
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x24]
add eax, 0x48
cmp eax, dword [ebp - 0x20]
jne 0x47199b
lea eax, [ebp - 0x148]
mov edx, dword [ebp - 0x28]
mov dword [eax], edx
lea eax, [ebp - 0x144]
mov edx, dword [ebp - 0x2c]
mov dword [eax], edx
lea eax, [ebp - 0x140]
mov edx, dword [ebp - 0x30]
mov dword [eax], edx
lea eax, [ebp - 0x13c]
mov edx, dword [ebp - 0x34]
mov dword [eax], edx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x188]
mov edx, 0x50
call fcn.0046b874
mov esp, ebp
pop ebp
ret 4