Function at 0x4164ef
Capabilities:
Authenticate hmac
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2dc
movzx eax, byte [0x42b9e4]
push ebx
push ebp
push esi
mov ebx, ecx
mov dword [esp + 0x58], edx
mov ecx, 0xecdb
mov dword [esp + 0x30], ebx
push edi
push dword [esp + 0x2f0]
xor ax, cx
mov word [0x42b9d4], ax
call fcn.0040702c
imul edx, dword [0x42b9c8], 0x62b1ed07
mov ebp, eax
mov dword [esp + 0x2c], ebp
mov esi, 0xff
mov dword [esp + 0x68], esi
pop ecx
mov dword [0x42b9e8], edx
test ebp, ebp
je 0x416b5b
push 0x2c
pop eax
mov word [esp + 0x38], ax
and edx, 0x46582b3a
xor eax, eax
and dword [esp + 0x30], 0
mov word [esp + 0x3a], ax
mov ax, word [0x42b9f4]
mov dword [0x42b9b8], edx
lea ecx, [eax + 0x6e]
movzx eax, ax
add eax, 0x3b4194c2
mov byte [0x42b9e4], cl
mov dword [0x42b9c8], eax
mov al, cl
or al, 0x2d
mov byte [0x42b9fc], al
movzx eax, cl
mov ecx, 0x8289
xor ax, cx
mov word [0x42b9d4], ax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x3c]
push eax
push ebp
call fcn.004057dc
mov di, word [0x42b9f4]
mov esi, eax
movzx edx, di
add esp, 0xc
and edx, 0xfa54d87e
mov dword [0x42b9b8], edx
test esi, esi
je 0x416b33
mov dword [esp + 0x48], 0x143b246d
mov word [esp + 0x4c], 0x246d
mov byte [esp + 0x4e], 0x3b
xor ecx, ecx
mov al, byte [esp + ecx + 0x48]
xor al, 0x48
movzx eax, al
mov word [esp + ecx*2 + 0x88], ax
inc ecx
cmp ecx, 7
jl 0x4165eb
add byte [0x42b9fc], 4
xor eax, eax
mov word [esp + 0x96], ax
or edx, 0x30f6fbd1
mov al, byte [0x42b9c8]
or al, 0xc6
mov dword [0x42b9e8], edx
mov byte [0x42b9e4], al
movzx eax, di
sub eax, 0x21bab903
push esi
mov dword [0x42b9b8], eax
lea eax, [esp + 0x8c]
push ebx
push eax
call fcn.00422d73
mov bx, word [0x42b9f4]
mov edi, eax
mov dx, word [0x42b9d4]
mov eax, 0x3999
movzx ecx, bl
sub dx, ax
imul ecx, ecx, 0xe0
add esp, 0xc
mov dword [esp + 0x3c], edi
movzx esi, dx
mov word [0x42b9d4], dx
mov byte [0x42b9fc], cl
test edi, edi
je 0x416ae4
mov eax, dword [0x42b9b8]
xor ecx, ecx
or eax, 0xeae715c8
or esi, 0xc912
mov dword [0x42b9e8], eax
mov edx, 0x54e1cc7b
mov al, byte [0x42b9c8]
inc ecx
xor al, 0xb7
mov word [0x42b9f4], si
mov byte [0x42b9fc], al
movzx eax, bx
add eax, 0x65aece9c
mov dword [0x42b9c8], eax
lea eax, [esp + 0x98]
push eax
push edi
call fcn.004155a6
call eax
mov edx, dword [0x42b9c8]
mov edi, eax
mov ecx, edx
mov dword [esp + 0x58], edi
and ecx, 0x78f3
and edx, 0x318b1136
mov word [0x42b9f4], cx
mov eax, 0xa104
add word [0x42b9d4], ax
xor ecx, ecx
mov dword [0x42b9c8], edx
inc ecx
mov edx, 0x17299c7b
call fcn.004155a6
mov dx, word [0x42b9f4]
or dword [0x42b9e8], 0x6ca89cf9
mov dword [esp + 0x60], eax
mov eax, 0x39ae
xor dx, ax
movzx esi, dx
add esi, 0xffffd07e
mov word [0x42b9f4], dx
mov word [0x42b9d4], si
cmp edi, 0xffffffff
je 0x416abf
movzx ecx, byte [0x42b9fc]
mov eax, 0x2632
mov ebp, dword [esp + 0x60]
or cx, ax
mov word [esp + 0x14], 0x4343
push 0x2e
pop eax
mov word [esp + 0x54], ax
mov ebx, 0xff
xor eax, eax
xor edx, edx
mov word [esp + 0x56], ax
movzx eax, byte [esp + edx + 0x14]
sub ax, 0x15
and ax, bx
mov word [esp + edx*2 + 0x40], ax
inc edx
cmp edx, 2
jl 0x416781
xor eax, eax
mov word [esp + 0x44], ax
movzx eax, si
add eax, 0x7616e95c
mov dword [0x42b9e8], eax
mov eax, 0xf942
add cx, ax
imul eax, dword [0x42b9c8], 0xfeaad6f1
mov word [0x42b9f4], cx
mov dword [0x42b9b8], eax
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0xc8]
push eax
call fcn.00405af6
pop ecx
pop ecx
test eax, eax
je 0x416a73
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0xc8]
push eax
call fcn.00405af6
pop ecx
pop ecx
test eax, eax
je 0x416a73
mov ecx, dword [0x42b9e8]
imul eax, ecx, 0x5c59329e
mov dword [0x42b9c8], eax
add eax, 0x4804432c
test byte [esp + 0x98], 0xa7
mov dword [0x42b9b8], eax
je 0x416a51
mov dl, byte [0x42b9e4]
mov bl, cl
movzx eax, word [0x42b9d4]
add dl, 0x2d
and eax, 0x60e4790c
mov byte [0x42b9fc], dl
xor bl, 0x91
mov dword [0x42b9c8], eax
add ecx, 0xd5c6a94
mov byte [0x42b9e4], bl
cmp dword [esp + 0xb4], 0
mov dword [0x42b9e8], ecx
jne 0x416a51
cmp dword [esp + 0xb8], 0xa00000
jae 0x416a51
mov dword [esp + 0x18], 0x6c837c35
xor ecx, ecx
mov word [esp + 0x1c], 0x7c35
mov esi, 0xff
mov byte [esp + 0x1e], 0x83
movzx eax, byte [esp + ecx + 0x18]
sub ax, 0x10
and ax, si
mov word [esp + ecx*2 + 0x68], ax
inc ecx
cmp ecx, 7
jl 0x41689c
xor eax, eax
mov ecx, 0x3147
mov word [esp + 0x76], ax
mov ax, word [0x42b9f4]
and ax, cx
movzx ecx, bl
mov word [0x42b9d4], ax
add ecx, 0xb05338c5
movzx eax, dl
and eax, 0xbfdc0213
mov dword [0x42b9e8], ecx
mov dword [0x42b9c8], eax
add cl, 0x44
lea eax, [esp + 0xc4]
mov byte [0x42b9e4], cl
push eax
push dword [esp + 0x38]
lea eax, [esp + 0x70]
push eax
call fcn.00422d73
movzx ecx, byte [0x42b9fc]
mov edi, eax
add ecx, 0x40f30683
add esp, 0xc
mov dword [0x42b9b8], ecx
test edi, edi
je 0x416a4d
mov dword [esp + 0x20], 0xdd211ad3
xor ecx, ecx
mov word [esp + 0x24], 0x1ad3
mov byte [esp + 0x26], 0x21
movzx eax, byte [esp + ecx + 0x20]
add ax, 0x52
and ax, si
mov word [esp + ecx*2 + 0x78], ax
inc ecx
cmp ecx, 7
jl 0x41693f
xor eax, eax
mov word [esp + 0x86], ax
imul eax, dword [0x42b9c8], 0x9fdb
mov word [0x42b9d4], ax
movzx eax, ax
and eax, 0x88ce3f9b
mov dword [0x42b9e8], eax
lea eax, [esp + 0xc4]
push eax
push dword [esp + 0x60]
lea eax, [esp + 0x80]
push eax
call fcn.00422d73
mov dl, byte [0x42b9f4]
mov esi, eax
mov ax, word [0x42b9d4]
mov ecx, 0x7f38
or dl, 0x13
add cx, ax
add esp, 0xc
mov byte [0x42b9fc], dl
mov word [0x42b9f4], cx
test esi, esi
je 0x416a2d
movzx ecx, ax
mov edx, esi
movzx eax, byte [0x42b9c8]
add ecx, 0x966bc3c8
imul eax, eax, 0x11
mov dword [0x42b9b8], ecx
mov byte [0x42b9e4], al
imul eax, ecx, 0x25c7f7e2
mov ecx, edi
mov dword [0x42b9e8], eax
call fcn.0041e59c
mov cx, word [0x42b9d4]
mov eax, 0x441f
sub cx, ax
mov al, byte [0x42b9e8]
mov word [0x42b9f4], cx
sub al, 0x68
and cl, 0xc2
mov byte [0x42b9e4], al
push esi
mov byte [0x42b9fc], cl
call fcn.004056f0
mov dl, byte [0x42b9fc]
pop ecx
mov eax, dword [0x42b9e8]
xor dl, 0x8d
or eax, 0x9a41
mov byte [0x42b9e4], dl
push edi
mov word [0x42b9f4], ax
call fcn.004056f0
pop ecx
mov edi, dword [esp + 0x58]
lea eax, [esp + 0x98]
push eax
push edi
call ebp
test eax, eax
je 0x416a87
mov si, word [0x42b9d4]
mov cx, word [0x42b9f4]
jmp 0x41676b
movzx eax, word [0x42b9d4]
imul eax, eax, 0x2a2956bb
mov dword [0x42b9c8], eax
jmp 0x416a51
mov dl, byte [0x42b9fc]
mov eax, 0x1698
movzx ecx, dl
and dl, 0x22
imul ecx, eax
mov byte [0x42b9e4], dl
mov edx, 0x83fbc401
push edi
mov word [0x42b9d4], cx
xor ecx, ecx
inc ecx
call fcn.004155a6
call eax
mov dx, word [0x42b9f4]
push dword [esp + 0x3c]
movzx eax, dx
imul eax, eax, 0xfed1610d
mov dword [0x42b9b8], eax
call fcn.004056f0
mov dx, word [0x42b9d4]
pop ecx
mov cl, byte [0x42b9fc]
movzx eax, cl
sub dl, 0x2c
and eax, 0xd1da122f
mov byte [0x42b9e4], dl
sub eax, 0x126fa8a2
mov dword [0x42b9e8], eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x3c]
push eax
push 0
call fcn.004057dc
mov ebx, dword [esp + 0x40]
mov esi, eax
add esp, 0xc
test esi, esi
je 0x416b2f
mov edx, dword [0x42b9b8]
mov di, word [0x42b9f4]
jmp 0x4165e9
mov ebp, dword [esp + 0x28]
imul eax, dword [0x42b9e8], 0x67a8
push ebp
mov word [0x42b9f4], ax
mov al, byte [0x42b9d4]
and al, 0xc2
mov byte [0x42b9fc], al
call fcn.004056f0
pop ecx
mov esi, 0xff
mov eax, 0x2414
or word [0x42b9f4], ax
cmp byte [esp + 0x2f4], 0
je 0x417035
mov dword [esp + 0x28], 0x94aba45d
xor ecx, ecx
mov byte [esp + 0x2c], 0x62
movzx eax, byte [esp + ecx + 0x28]
sub ax, 0x38
and ax, si
mov word [esp + ecx*2 + 0x48], ax
inc ecx
cmp ecx, 5
jl 0x416b84
movzx ecx, word [0x42b9b8]
xor eax, eax
or byte [0x42b9e4], 0x36
mov word [esp + 0x52], ax
movzx eax, word [0x42b9d4]
or eax, 0xc9211f2c
mov dword [0x42b9c8], eax
imul eax, ecx, 0x7b31
push ebx
mov word [0x42b9d4], ax
imul eax, ecx, 0x3047
mov word [0x42b9f4], ax
lea eax, [esp + 0x4c]
push eax
call fcn.00422d73
movzx edx, byte [0x42b9e4]
mov ebx, eax
xor dword [0x42b9c8], 0xd9ebab04
pop ecx
pop ecx
mov ecx, 0xeef3
mov dword [esp + 0x3c], ebx
imul edx, ecx
mov word [0x42b9d4], dx
test ebx, ebx
je 0x417035
imul eax, edx, 0xc08f
mov ecx, 0x56553e3d
mov edx, 0x54e1cc7b
movzx esi, ax
mov word [0x42b9d4], ax
lea eax, [esi + 0x5b001fbc]
mov dword [0x42b9e8], eax
imul eax, esi, 0x303b2858
sub ecx, eax
mov eax, 0x679f
mov dword [0x42b9b8], ecx
movzx ecx, byte [0x42b9fc]
imul ecx, eax
lea eax, [esi - 0x583538b9]
mov dword [0x42b9c8], eax
lea eax, [esp + 0x98]
push eax
push ebx
mov word [0x42b9f4], cx
add cl, 0x1c
mov byte [0x42b9e4], cl
xor ecx, ecx
inc ecx
call fcn.004155a6
call eax
movzx ecx, byte [0x42b9e4]
mov ebp, eax
mov eax, 0xfbc8
mov edx, 0x17299c7b
or cx, ax
mov word [0x42b9d4], cx
xor ecx, ecx
inc ecx
call fcn.004155a6
movzx ecx, byte [0x42b9e4]
imul ecx, ecx, 0x3c
mov dword [esp + 0x28], eax
mov ax, word [0x42b9f4]
mov byte [0x42b9e4], cl
movzx ecx, al
imul ecx, ecx, 0x89
mov byte [0x42b9fc], cl
cmp ebp, 0xffffffff
je 0x417016
mov cl, byte [0x42b9d4]
mov ebx, dword [esp + 0x28]
xor cl, 0xe2
movzx edx, cl
or edx, 0xe6bb77ca
movzx edi, ax
sub edi, 0x7361b34a
mov dword [0x42b9e8], edx
mov dword [0x42b9b8], edi
mov word [esp + 0x14], 0xb6b6
push 0x2e
pop eax
mov word [esp + 0x30], ax
xor eax, eax
mov word [esp + 0x32], ax
xor esi, esi
movzx eax, byte [esp + esi + 0x14]
add ax, 0x78
and ax, word [esp + 0x64]
mov word [esp + esi*2 + 0x40], ax
inc esi
cmp esi, 2
jl 0x416d1d
xor eax, eax
and edx, 0xe917
mov word [esp + 0x44], ax
or cl, 0xd6
imul eax, edi, 0xf357
mov word [0x42b9d4], dx
mov byte [0x42b9fc], cl
mov word [0x42b9f4], ax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0xc8]
push eax
call fcn.00405af6
pop ecx
pop ecx
test eax, eax
je 0x416f9c
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0xc8]
push eax
call fcn.00405af6
pop ecx
pop ecx
test eax, eax
je 0x416f9c
mov edx, dword [0x42b9b8]
add byte [0x42b9e4], 0xde
imul eax, edx, 0x88f4
test byte [esp + 0x98], 0x10
mov word [0x42b9f4], ax
je 0x416fbc
mov dword [esp + 0x20], 0x4a615a13
xor ecx, ecx
mov word [esp + 0x24], 0x5a13
mov esi, 0xff
mov byte [esp + 0x26], 0x61
movzx eax, byte [esp + ecx + 0x20]
add ax, 0x12
and ax, si
mov word [esp + ecx*2 + 0x78], ax
inc ecx
cmp ecx, 7
jl 0x416dd9
xor eax, eax
and dl, 0x1b
mov word [esp + 0x86], ax
mov ecx, 0x717d
movzx eax, dl
or ax, cx
mov byte [0x42b9fc], dl
mov word [0x42b9f4], ax
lea eax, [esp + 0xc4]
push eax
push dword [esp + 0x38]
lea eax, [esp + 0x80]
push eax
call fcn.00422d73
mov ecx, 0xe06e
mov esi, eax
or cx, word [0x42b9f4]
add esp, 0xc
mov word [0x42b9d4], cx
test esi, esi
je 0x416fbc
mov dword [esp + 0x18], 0xc8948bc2
xor ecx, ecx
mov word [esp + 0x1c], 0x8bc2
mov byte [esp + 0x1e], 0x94
mov al, byte [esp + ecx + 0x18]
xor al, 0xe7
movzx eax, al
mov word [esp + ecx*2 + 0x68], ax
inc ecx
cmp ecx, 7
jl 0x416e63
xor eax, eax
mov edx, 0xf452
mov word [esp + 0x76], ax
movzx eax, byte [0x42b9fc]
and ax, dx
mov word [0x42b9d4], ax
movzx eax, byte [0x42b9fc]
add eax, 0x34b0df6f
mov dword [0x42b9c8], eax
xor al, 8
mov byte [0x42b9e4], al
imul eax, dword [0x42b9b8], 0x81ff272
mov dword [0x42b9b8], eax
xor al, 0x5c
mov byte [0x42b9fc], al
lea eax, [esp + 0xc4]
push eax
push dword [esp + 0x60]
lea eax, [esp + 0x70]
push eax
call fcn.00422d73
movzx ecx, word [0x42b9f4]
mov edi, eax
sub ecx, 0x11eca7da
mov eax, 0xe15
mov dword [0x42b9c8], ecx
add esp, 0xc
movzx ecx, byte [0x42b9fc]
sub cx, ax
mov word [0x42b9f4], cx
test edi, edi
je 0x416f76
movzx eax, word [0x42b9d4]
or ecx, 0x8c6f
push dword [esp + 0x2f4]
imul eax, eax, 0xa061203f
mov edx, edi
push dword [esp + 0x2f4]
mov word [0x42b9d4], cx
mov ecx, esi
mov dword [0x42b9e8], eax
movzx eax, byte [0x42b9e4]
and eax, 0x22b023d5
mov dword [0x42b9c8], eax
call fcn.004164ef
mov eax, dword [0x42b9b8]
add eax, 0xa40
mov word [0x42b9d4], ax
movzx eax, ax
sub eax, 0x11224314
push edi
mov dword [0x42b9c8], eax
call fcn.004056f0
add esp, 0xc
movzx eax, byte [0x42b9e4]
sub eax, 0x46ec658
mov dword [0x42b9b8], eax
mov eax, 0x48f6
add word [0x42b9d4], ax
push esi
call fcn.004056f0
pop ecx
jmp 0x416fbc
movzx eax, byte [0x42b9f4]
imul eax, eax, 0x39
mov byte [0x42b9fc], al
movzx eax, byte [0x42b9e4]
and eax, 0xbad20117
mov dword [0x42b9b8], eax
lea eax, [esp + 0x98]
push eax
push ebp
call ebx
test eax, eax
je 0x416fe2
mov edx, dword [0x42b9e8]
mov cl, byte [0x42b9fc]
mov edi, dword [0x42b9b8]
jmp 0x416d0c
mov eax, dword [0x42b9b8]
xor ecx, ecx
sub dword [0x42b9c8], 0x3db988a4
add eax, 0xffff9621
push ebp
mov edx, 0x83fbc401
mov word [0x42b9f4], ax
inc ecx
call fcn.004155a6
call eax
mov cl, byte [0x42b9fc]
mov ebx, dword [esp + 0x3c]
movzx eax, cl
and eax, 0x861d9175
mov dword [0x42b9c8], eax
add eax, 0x6392
push ebx
mov word [0x42b9f4], ax
call fcn.004056f0
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2dc
ret