Function at 0x402530
Capabilities:
Authenticate hmac

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9a4
mov eax, dword [0x425758]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x9a4], ecx
mov byte [ebp - 0x680], 0x5b
mov byte [ebp - 0x67f], 0x5c
mov byte [ebp - 0x67e], 0
mov byte [ebp - 0x67d], 0x41
mov dword [ebp - 0x440], 4
mov eax, dword [ebp - 0x9a4]
mov ecx, dword [eax]
mov dword [ebp - 0x114], ecx
mov edx, dword [ebp + 8]
mov dword [edx], 0
mov eax, dword [ebp - 0x9a4]
mov dword [eax + 0x4c], 3
lea ecx, [ebp - 0x438]
push ecx
mov edx, dword [ebp - 0x440]
push edx
lea eax, [ebp - 0x680]
push eax
mov ecx, dword [ebp - 0x9a4]
call fcn.00405d40
mov byte [ebp - 0x439], al
movzx ecx, byte [ebp - 0x439]
test ecx, ecx
je 0x4025cd
cmp dword [ebp - 0x438], 4
je 0x4025d4
xor al, al
jmp 0x40299b
push 0x1f4
call fcn.00408050
add esp, 4
mov dword [ebp - 0x578], 2
push 0x12c
lea edx, [ebp - 0x578]
push edx
lea eax, [ebp - 0x570]
push eax
mov ecx, dword [ebp - 0x9a4]
call fcn.00405d80
movzx ecx, al
test ecx, ecx
jne 0x402617
xor al, al
jmp 0x40299b
movzx edx, byte [ebp - 0x570]
cmp edx, 1
jne 0x40262f
movzx eax, byte [ebp - 0x56f]
cmp eax, 1
je 0x402636
xor al, al
jmp 0x40299b
push 0x4204d8
lea ecx, [ebp - 0x220]
push ecx
mov ecx, dword [ebp - 0x9a4]
call fcn.00405570
lea edx, [ebp - 0x110]
push edx
call fcn.00401ca0
add esp, 4
lea eax, [ebp - 0x898]
push eax
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x220]
push edx
call fcn.00402140
add esp, 0xc
mov dword [ebp - 0x684], 0
mov dword [ebp - 0x434], 0
jmp 0x40269e
mov eax, dword [ebp - 0x434]
add eax, 1
mov dword [ebp - 0x434], eax
cmp dword [ebp - 0x434], 0x100
jge 0x4026c6
mov ecx, dword [ebp - 0x434]
movzx edx, byte [ebp + ecx - 0x898]
add edx, dword [ebp - 0x684]
mov dword [ebp - 0x684], edx
jmp 0x40268f
mov eax, dword [ebp - 0x684]
and eax, 0x800000ff
jns 0x4026da
dec eax
or eax, 0xffffff00
inc eax
mov dword [ebp - 0x574], eax
mov cl, byte [ebp - 0x574]
mov byte [ebp - 0x798], cl
lea edx, [ebp - 0x438]
push edx
push 0x101
lea eax, [ebp - 0x898]
push eax
mov ecx, dword [ebp - 0x9a4]
call fcn.00405d40
mov byte [ebp - 0x439], al
movzx ecx, byte [ebp - 0x439]
test ecx, ecx
je 0x402727
cmp dword [ebp - 0x438], 0x101
je 0x40272e
xor al, al
jmp 0x40299b
mov dword [ebp - 0x578], 2
push 0x640
lea edx, [ebp - 0x578]
push edx
lea eax, [ebp - 0x570]
push eax
mov ecx, dword [ebp - 0x9a4]
call fcn.00405d80
movzx ecx, al
test ecx, ecx
jne 0x402764
xor al, al
jmp 0x40299b
movzx edx, byte [ebp - 0x570]
cmp edx, 1
jne 0x40277c
movzx eax, byte [ebp - 0x56f]
cmp eax, 1
je 0x402783
xor al, al
jmp 0x40299b
mov dword [ebp - 0x578], 0x101
push 0x640
lea ecx, [ebp - 0x578]
push ecx
lea edx, [ebp - 0x570]
push edx
mov ecx, dword [ebp - 0x9a4]
call fcn.00405d80
movzx eax, al
test eax, eax
jne 0x4027b9
xor al, al
jmp 0x40299b
push 0x100
lea ecx, [ebp - 0x570]
push ecx
call fcn.00401c50
add esp, 8
mov dword [ebp - 0x684], eax
movzx edx, byte [ebp - 0x470]
cmp dword [ebp - 0x684], edx
je 0x4027e9
xor al, al
jmp 0x40299b
mov dword [ebp - 0x434], 0
jmp 0x402804
mov eax, dword [ebp - 0x434]
add eax, 1
mov dword [ebp - 0x434], eax
cmp dword [ebp - 0x434], 0x100
jge 0x40282c
mov ecx, dword [ebp - 0x434]
mov edx, dword [ebp - 0x434]
mov al, byte [ebp + edx - 0x898]
mov byte [ebp + ecx - 0x790], al
jmp 0x4027f5
lea ecx, [ebp - 0x9a0]
push ecx
lea edx, [ebp - 0x790]
push edx
lea eax, [ebp - 0x220]
push eax
call fcn.00402140
add esp, 0xc
mov dword [ebp - 0x434], 0
jmp 0x402864
mov ecx, dword [ebp - 0x434]
add ecx, 1
mov dword [ebp - 0x434], ecx
cmp dword [ebp - 0x434], 0x100
jge 0x40289d
mov edx, dword [ebp - 0x434]
movzx eax, byte [ebp + edx - 0x570]
mov ecx, dword [ebp - 0x434]
movzx edx, byte [ebp + ecx - 0x9a0]
xor eax, edx
mov ecx, dword [ebp - 0x434]
mov byte [ebp + ecx - 0x430], al
jmp 0x402855
movzx edx, byte [ebp - 0x430]
movzx eax, byte [ebp - 0x568]
xor edx, eax
mov byte [ebp - 0x328], dl
movzx ecx, byte [ebp - 0x42f]
movzx edx, byte [ebp - 0x567]
xor ecx, edx
mov byte [ebp - 0x327], cl
movzx eax, byte [ebp - 0x42e]
movzx ecx, byte [ebp - 0x566]
xor eax, ecx
mov byte [ebp - 0x326], al
movzx edx, byte [ebp - 0x42d]
movzx eax, byte [ebp - 0x565]
xor edx, eax
mov byte [ebp - 0x325], dl
movzx ecx, byte [ebp - 0x328]
xor ecx, 0x57
mov byte [ebp - 0x328], cl
movzx edx, byte [ebp - 0x327]
xor edx, 0x36
mov byte [ebp - 0x327], dl
movzx eax, byte [ebp - 0x326]
xor eax, 0x8a
mov byte [ebp - 0x326], al
movzx ecx, byte [ebp - 0x325]
xor ecx, 0xbc
mov byte [ebp - 0x325], cl
mov byte [ebp - 0x324], 0
mov dword [ebp - 0x434], 0
jmp 0x40295c
mov edx, dword [ebp - 0x434]
add edx, 1
mov dword [ebp - 0x434], edx
cmp dword [ebp - 0x434], 4
jge 0x40298c
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
shl ecx, 8
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov eax, dword [ebp - 0x434]
movzx ecx, byte [ebp + eax - 0x328]
mov edx, dword [ebp + 8]
add ecx, dword [edx]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
jmp 0x40294d
mov ecx, dword [ebp - 0x9a4]
mov dword [ecx + 0x4c], 0
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c735
mov esp, ebp
pop ebp
ret 4