Function at 0x521ce0
Capabilities:
Authenticate hmac
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xa8
mov eax, dword [ebp + 0x14]
cmp eax, 0xe
je 0x521d9f
cmp eax, 0xf
je 0x521ee4
mov ebx, 0x4e59b84e
cmp eax, 0x10
jne 0x521f26
mov dword [esp + 4], 0
mov dword [esp], 0x80dc34
call fcn.007c74b0
test eax, eax
jne 0x522178
add bl, 0xc4
movzx eax, bl
cmp eax, 0x12
jne 0x522018
mov dword [esp], 0x80dc3c
call fcn.0043a490
mov dword [esp], 0x80dc4c
call fcn.0043a490
mov dword [0x80dc24], 0
mov dword [0x80dc28], 0
mov dword [esp + 4], 0x20
mov dword [esp], 0x80dc2c
call fcn.00419db0
call fcn.00590710
mov eax, dword [0x80dc34]
mov dword [esp], eax
call fcn.007c74c0
mov ecx, eax
imul ecx, ecx
and ecx, 3
cmp ecx, 2
jmp 0x522072
mov dword [esp + 0x9c], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x84], 2
mov dword [esp + 0x80], 1
mov eax, dword [0x7dc5a8]
mov dword [esp + 0x78], eax
movsd xmm0, qword [0x7dc5a0]
movsd qword [esp + 0x70], xmm0
mov eax, dword [0x7dc5e8]
mov dword [esp + 0x68], eax
movsd xmm0, qword [0x7dc5e0]
movsd qword [esp + 0x60], xmm0
movsd xmm0, qword [0x7dc5d8]
movsd qword [esp + 0x58], xmm0
lea eax, [esp + 0x9c]
mov dword [esp + 4], eax
lea eax, [esp + 0x80]
mov dword [esp], eax
call fcn.00594ba0
mov ecx, eax
imul ecx, ecx
and ecx, 3
cmp ecx, 2
sete cl
movzx ecx, cl
cmp eax, ecx
jne 0x521fe2
mov bl, 0x39
mov bh, 0x38
mov eax, dword [esp + 0x9c]
lea ecx, [esp + 0x94]
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.00595290
mov ecx, eax
imul ecx, ecx
and ecx, 3
cmp ecx, 3
sete cl
movzx ecx, cl
mov edi, dword [esp + 0x94]
cmp eax, ecx
jne 0x52212e
test edi, edi
je 0x52212e
mov eax, edi
not eax
and eax, 1
add eax, edi
je 0x52212e
mov eax, 0xa
mov esi, 0x7000002b
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], ecx
mov byte [esp + 0x4c], cl
mov byte [esp + 0x53], cl
mov byte [esp + 0x44], cl
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x3c], ecx
jmp 0x5224c5
mov edi, 0x14
mov eax, dword [0x80dc34]
mov dword [esp], eax
call fcn.007c74c0
test eax, eax
jne 0x522b8a
mov esi, 0xf
call fcn.005974c0
mov ecx, eax
imul ecx, ecx
and ecx, 3
cmp ecx, 3
sete cl
movzx ecx, cl
cmp eax, ecx
je 0x522b5a
jmp 0x522b4e
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor ebx, 0x4e59b859
mov dword [esp + 0xa0], 0
mov dword [edx], 0
lea edx, [esp + 0xa0]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.00627130
mov dword [esp + 0x44], eax
test eax, eax
je 0x522106
add ebx, 0xfffffff1
mov ecx, ebx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov byte [esp + 0x4b], al
mov byte [esp + 0x53], al
cmp ecx, 8
mov eax, dword [esp + 0x4c]
jne 0x522125
xor ecx, ecx
mov ebx, eax
mov edi, dword [ebp + 0x10]
jmp 0x521fc3
mov eax, 5
mov edx, 3
sub edx, ecx
xor edx, ecx
setne dl
movzx edx, dl
add ecx, edx
mov dword [edi], 0
mov ebx, dword [esp + 0xa0]
test ecx, ecx
jne 0x52216f
mov edx, ecx
or edx, 2
mov esi, ecx
xor esi, 2
add esi, edx
jne 0x521fa0
mov dword [esp + 0x54], ebx
jmp 0x5222a2
mov esi, 0x7000002b
mov dword [esp + 0x3c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], eax
mov byte [esp + 0x4b], al
mov byte [esp + 0x53], al
mov byte [esp + 0x4c], al
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
jmp 0x522403
mov dword [esp], 0x80dc3c
call fcn.0043a490
mov dword [esp], 0x80dc4c
call fcn.0043a490
mov dword [0x80dc24], 0
mov dword [0x80dc28], 0
mov dword [esp + 4], 0x20
mov dword [esp], 0x80dc2c
call fcn.00419db0
call fcn.00590710
mov eax, dword [0x80dc34]
mov dword [esp], eax
call fcn.007c74c0
mov ecx, eax
and ecx, 1
inc ecx
xor ecx, eax
sete cl
movzx ecx, cl
cmp eax, ecx
jne 0x522b95
call fcn.005974c0
mov ecx, eax
imul ecx, ecx
and ecx, 3
cmp ecx, 2
sete cl
movzx ecx, cl
cmp eax, ecx
je 0x5220a9
mov al, 0x4f
movzx eax, al
cmp eax, 0x4f
mov byte [0x80dc38], 1
call fcn.00449800
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x31
mov dword [esp], 0
xor ecx, ecx
xor edx, edx
call fcn.0051f860
call fcn.00597bd0
mov eax, dword [0x80dc34]
mov dword [esp], eax
call fcn.007c74e0
mov ecx, eax
imul ecx, ecx
and ecx, 3
cmp ecx, 2
sete cl
movzx ecx, cl
cmp eax, ecx
je 0x522ba6
jmp 0x522bad
mov edi, ebx
mov dword [esp + 0x40], eax
mov byte [esp + 0x4b], al
mov byte [esp + 0x53], al
mov dword [esp + 0x54], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x3c], eax
jmp 0x522396
mov dword [esp + 0x54], eax
jmp 0x522364
mov dword [esp + 0x20], edi
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
mov byte [esp + 0x4c], al
mov byte [esp + 0x4b], al
mov byte [esp + 0x44], al
mov byte [esp + 0x53], al
mov dword [esp + 0x24], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x40], eax
jmp 0x522a7e
mov dword [esp + 0x54], ebx
jmp 0x5222a2
mov dword [esp], str.Failed_to_create_cert_handler_mutex_n
call fcn.00441610
call fcn.0044c0d0
mov eax, 0xb
mov byte [esp + 0x4b], 0x4f
mov ecx, dword [esp + 0x3c]
mov esi, dword [ecx + 8]
test esi, esi
jne 0x5221c2
mov edi, 0xc
mov ecx, esi
or ecx, 2
mov edx, esi
mov dword [esp + 0x40], esi
xor edx, 2
add edx, ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x54], ecx
jne 0x522222
jmp 0x5223f1
mov dword [esp + 0x40], esi
jmp 0x5223f1
mov ecx, 0x16
mov byte [esp + 0x4b], 0x4f
mov byte [esp + 0x53], 0x34
mov eax, dword [esp + 0x40]
cmp dword [eax + 0x1c], 0
je 0x521f82
xor eax, eax
test al, al
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x54], eax
je 0x522287
jmp 0x521f82
mov edi, 0x1c
inc esi
mov dword [esp], ebx
call fcn.00627240
mov eax, esi
imul eax, eax
and eax, 3
cmp eax, 2
sbb eax, eax
and eax, 1
cmp esi, eax
jb 0x522200
cmp edi, 0xc
jne 0x522319
imul edi, edi
and edi, 3
cmp edi, 2
jb 0x522364
jmp 0x522319
mov byte [esp + 0x4b], 0x1e
mov byte [esp + 0x53], 0x34
mov eax, dword [esp + 0x40]
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x5223f6
mov edi, 0x12
mov ecx, eax
and ecx, 1
inc ecx
xor ecx, eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x54], eax
je 0x522364
cmp edi, 0x10
jne 0x522287
imul edi, edi
and edi, 3
cmp edi, 2
jb 0x522319
mov ecx, 7
mov eax, 0x14
movzx edx, byte [esp + 0x53]
cmp edx, 0x34
mov edi, dword [ebp + 0x10]
jne 0x5223cd
cmp eax, 5
jne 0x5222b7
mov ecx, eax
or ecx, 2
xor eax, 2
add eax, ecx
jne 0x522364
mov eax, 0x10
mov byte [esp + 0x53], 0x34
mov dword [edi], 1
cmp eax, 0x10
je 0x5223f6
imul eax, eax
and eax, 3
cmp eax, 2
jne 0x52223f
jmp 0x5223f6
mov edi, 0x10
cmp eax, 2
adc esi, 0
mov dword [esp], ebx
call fcn.00627240
mov eax, esi
imul eax, eax
and eax, 3
test esi, esi
je 0x5222f0
cmp eax, 3
je 0x5222f0
jmp 0x522273
mov eax, dword [esp + 0x44]
jmp 0x5224bd
mov edx, 0xc
mov esi, edi
imul esi, esi
and esi, 3
cmp esi, 2
mov ebx, edi
jae 0x522375
xor esi, esi
cmp edx, 4
je 0x522303
xor eax, eax
test al, al
je 0x522319
jmp 0x522303
mov ecx, 0x1e
mov esi, dword [esp + 0xa0]
mov dword [esp + 0x54], esi
mov edx, dword [esi + 0xc]
mov dword [esp + 0x3c], edx
test edx, edx
mov dword [esp + 0x4c], esi
jne 0x522375
mov ecx, 0xf
mov al, 0x27
mov edi, dword [esp + 0x54]
test edi, edi
je 0x522322
mov ebx, edi
cmp ecx, 0xf
je 0x522384
xor ecx, ecx
test cl, cl
je 0x522189
mov edi, 7
mov edx, 4
movzx ecx, al
cmp ecx, 0x27
jne 0x522336
xor esi, esi
cmp edi, 7
je 0x52220e
xor ecx, ecx
test cl, cl
je 0x522345
jmp 0x52220e
xor eax, eax
test al, al
jne 0x5223f6
mov eax, 0x1e
mov ecx, 2
movzx edx, byte [esp + 0x4b]
cmp edx, 0x1e
mov edi, dword [ebp + 0x10]
jne 0x5222c7
cmp ecx, 2
jne 0x5223e1
mov eax, 3
sub eax, ecx
xor eax, ecx
jne 0x5221cb
mov eax, 7
mov byte [esp + 0x53], 0x21
mov dword [edi], 1
cmp eax, 7
jne 0x5223ac
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x54], eax
jmp 0x522364
mov edx, dword [esp + 0x98]
test edx, edx
je 0x522430
mov eax, 0x18
xor ecx, ecx
test cl, cl
mov edi, esi
jne 0x522430
cmp eax, 0xc
je 0x522454
xor eax, eax
test al, al
jne 0x522454
mov dword [esp], edx
call fcn.00595380
mov esi, edi
mov eax, dword [esp + 0x9c]
test eax, eax
je 0x522450
mov ecx, eax
imul ecx, ecx
and ecx, 3
cmp ecx, 2
je 0x522450
mov dword [esp], eax
call fcn.00595380
mov eax, esi
jmp 0x5224bd
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edx
mov byte [esp + 0x44], 3
mov eax, dword [esp + 0x98]
lea ecx, [esp + 0x90]
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.00595290
mov ecx, eax
imul ecx, ecx
and ecx, 3
cmp ecx, 2
sete cl
movzx edi, cl
mov edx, dword [esp + 0x90]
mov dword [esp + 0x40], edx
test edx, edx
setne cl
imul edx, edx
and edx, 3
cmp edx, 3
sete dl
cmp eax, edi
jne 0x522a14
or cl, dl
jne 0x52281b
jmp 0x522a14
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
cmp eax, 4
je 0x52255b
xor eax, eax
test al, al
jne 0x52255b
movzx ecx, bh
cmp ecx, 0x55
jne 0x5225c8
mov ecx, 3
lea edx, [esp + 0x78]
mov dword [esp + 0x38], edx
lea edx, [esp + 0x70]
mov dword [esp + 0x34], edx
lea edx, [esp + 0x60]
mov dword [esp + 0x30], edx
lea edx, [esp + 0x64]
mov dword [esp + 0x2c], edx
mov byte [esp + 0x4c], dl
mov byte [esp + 0x44], dl
mov byte [esp + 0x4b], dl
mov byte [esp + 0x53], dl
lea edx, [esp + 0x68]
mov dword [esp + 0x28], edx
lea edx, [esp + 0x58]
mov dword [esp + 0x24], edx
jmp 0x522548
mov bh, 0x38
mov byte [esp + 0x53], 0x60
mov byte [esp + 0x4b], 0x63
mov byte [esp + 0x44], 3
mov byte [esp + 0x4c], 0x54
inc eax
dec ecx
test eax, eax
jne 0x52260e
mov edx, eax
xor edx, ecx
jne 0x522530
jmp 0x52260e
mov dword [esp + 0x20], edi
mov dword [esp + 0x54], 4
mov eax, dword [esp + 0x94]
mov eax, dword [eax]
mov ecx, dword [esp + 0x30]
mov dword [ecx], eax
mov eax, dword [esp + 0x3c]
mov eax, dword [eax]
mov ecx, dword [esp + 0x2c]
mov dword [ecx], eax
mov edi, 5
mov byte [esp + 0x4b], 0x63
mov eax, dword [esp + 0x28]
mov dword [eax], 0xfffffff8
lea eax, [esp + 0x88]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.005953b0
mov ecx, eax
and ecx, 1
inc ecx
xor ecx, eax
sete cl
movzx ecx, cl
cmp eax, ecx
jne 0x5226f7
jmp 0x522781
mov bh, 0x55
mov byte [esp + 0x53], 0x60
mov byte [esp + 0x4b], 0x63
mov byte [esp + 0x44], 3
mov byte [esp + 0x4c], 0x54
lea eax, [esp + 0x78]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x70]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x60]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x64]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x68]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x58]
mov dword [esp + 0x24], eax
mov ecx, edi
mov dword [esp + 0x20], edi
movzx eax, byte [esp + 0x4c]
cmp eax, 0x2d
je 0x522678
cmp eax, 0x54
jne 0x5226ab
mov edi, 0xe
mov byte [esp + 0x4c], 0x2d
mov eax, dword [ecx]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x38]
mov dword [ecx], eax
lea eax, [esp + 0x98]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call fcn.00594ba0
mov ecx, eax
and ecx, 1
inc ecx
xor ecx, eax
sete cl
movzx ecx, cl
mov esi, 0x7000002b
cmp eax, ecx
mov ecx, dword [esp + 0x54]
je 0x522712
jmp 0x5227fd
mov byte [esp + 0x4c], 0x54
mov eax, dword [ecx]
mov ecx, dword [esp + 0x38]
mov dword [ecx], eax
lea eax, [esp + 0x98]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call fcn.00594ba0
mov esi, 0x7000002b
test eax, eax
jne 0x522403
jmp 0x522712
mov edi, 0xf
mov dword [esp + 0x54], 8
mov byte [esp + 0x4c], 0x25
mov eax, dword [ecx]
mov ecx, dword [esp + 0x38]
mov dword [ecx], eax
lea eax, [esp + 0x98]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call fcn.00594ba0
mov ecx, eax
and ecx, 1
inc ecx
xor ecx, eax
sete cl
movzx ecx, cl
mov esi, 0x7000002b
cmp eax, ecx
jne 0x522856
mov ecx, dword [esp + 0x54]
cmp ecx, 4
je 0x52293b
mov eax, ecx
and eax, 1
inc eax
xor eax, ecx
je 0x52293b
mov edi, 0x11
mov al, byte [esp + 0x44]
movzx ecx, al
cmp ecx, 3
je 0x522781
mov eax, 0xc
cmp ecx, 0x36
jne 0x5227de
mov byte [esp + 0x44], 0x36
mov eax, dword [esp + 0x98]
lea ecx, [esp + 0x90]
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.00595290
mov ecx, dword [esp + 0x90]
test eax, eax
jne 0x5227eb
test ecx, ecx
je 0x5227f4
mov eax, ecx
and eax, 1
xor eax, ecx
mov dword [esp + 0x40], ecx
not eax
test eax, eax
jne 0x52281b
jmp 0x522a14
cmp edi, 5
je 0x52291d
imul edi, edi
and edi, 3
cmp edi, 3
je 0x52291d
mov edi, 0x11
mov byte [esp + 0x44], 0x5c
mov eax, dword [esp + 0x98]
lea ecx, [esp + 0x90]
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.00595290
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x40], ecx
test ecx, ecx
setne cl
test eax, eax
jne 0x5229eb
test cl, cl
jne 0x52281b
jmp 0x5229eb
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
jmp 0x52241b
mov dword [esp + 0x40], ecx
jmp 0x522a14
mov dword [esp + 0x40], ecx
jmp 0x522a14
cmp edi, 0xe
jne 0x522614
mov eax, edi
or eax, 2
xor edi, 2
add edi, eax
jne 0x522403
jmp 0x522614
mov edx, dword [esp + 0x40]
mov eax, dword [edx]
test eax, eax
jne 0x522839
mov ecx, 3
sub ecx, eax
xor ecx, eax
je 0x522839
mov dword [esp + 0x3c], edx
jmp 0x52293b
mov eax, 4
movzx ecx, byte [esp + 0x4b]
cmp ecx, 0x5a
je 0x5228b8
mov edi, 6
cmp ecx, 0x63
jne 0x5228c5
mov dword [esp + 0x3c], edx
cmp edi, 6
jne 0x522403
mov eax, 3
sub eax, edi
xor eax, edi
je 0x522403
mov byte [esp + 0x4b], 0x12
mov eax, dword [esp + 0x94]
mov eax, dword [eax]
mov ecx, dword [esp + 0x30]
mov dword [ecx], eax
mov eax, dword [esp + 0x3c]
mov eax, dword [eax]
mov ecx, dword [esp + 0x2c]
mov dword [ecx], eax
mov eax, dword [esp + 0x28]
mov dword [eax], 0xfffffff8
lea eax, [esp + 0x88]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.005953b0
test eax, eax
je 0x52291d
jmp 0x52293b
mov dword [esp + 0x3c], edx
mov edi, dword [esp + 0x20]
jmp 0x5224c5
mov byte [esp + 0x4b], 0x5a
mov eax, dword [esp + 0x94]
mov eax, dword [eax]
mov ecx, dword [esp + 0x30]
mov dword [ecx], eax
mov edi, edx
mov eax, dword [edi]
mov ecx, dword [esp + 0x2c]
mov dword [ecx], eax
mov eax, dword [esp + 0x28]
mov dword [eax], 0xfffffff8
lea eax, [esp + 0x88]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.005953b0
mov ecx, eax
imul ecx, ecx
and ecx, 3
cmp ecx, 3
sete cl
movzx ecx, cl
cmp eax, ecx
mov dword [esp + 0x3c], edi
jne 0x52293b
mov eax, dword [esp + 0x90]
mov eax, dword [eax]
mov ecx, dword [esp + 0x94]
mov ecx, dword [ecx]
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.004af410
movzx eax, byte [esp + 0x53]
cmp eax, 0x60
jne 0x52299c
mov byte [esp + 0x53], 0x66
mov eax, dword [esp + 0x98]
lea ecx, [esp + 0x90]
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.00595290
mov ecx, eax
imul ecx, ecx
and ecx, 3
cmp ecx, 3
sete cl
movzx edx, cl
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x40], ecx
test ecx, ecx
setne cl
cmp eax, edx
jne 0x522a14
mov edi, 0x11
test cl, cl
jne 0x522b40
jmp 0x522a14
mov byte [esp + 0x53], 0x60
mov eax, dword [esp + 0x98]
lea ecx, [esp + 0x90]
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.00595290
mov edx, dword [esp + 0x90]
test eax, eax
jne 0x522a04
mov ecx, 3
sub ecx, eax
xor ecx, eax
je 0x522a0a
test edx, edx
je 0x522a10
mov edi, 0xf
mov eax, edx
mov dword [esp + 0x40], edx
imul eax, eax
and eax, 3
cmp eax, 2
jae 0x522a14
cmp edi, 0xf
je 0x52281b
imul edi, edi
and edi, 3
cmp edi, 3
jne 0x522a14
jmp 0x52281b
mov dword [esp + 0x40], edx
jmp 0x522a14
mov dword [esp + 0x40], edx
jmp 0x522a14
mov dword [esp + 0x40], edx
mov eax, dword [esp + 0x98]
mov dword [esp], eax
call fcn.00595380
mov dword [esp + 0x98], 0
mov eax, dword [esp + 0x9c]
lea ecx, [esp + 0x94]
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.00595290
mov ecx, eax
imul ecx, ecx
and ecx, 3
cmp ecx, 3
sete cl
movzx ecx, cl
cmp eax, ecx
jne 0x522a7e
mov ecx, dword [esp + 0x94]
test ecx, ecx
je 0x522a7e
mov edi, 0xf
mov eax, ecx
imul eax, eax
and eax, 3
cmp eax, 2
jb 0x5227fd
mov byte [esp + 0x1f], bh
mov byte [esp + 0x54], bl
movzx eax, bl
xor ebx, ebx
cmp eax, 0x75
jne 0x522aeb
xor esi, esi
jmp 0x522ac9
mov byte [esp + 0x54], 0x75
add eax, ebx
setne al
movzx eax, al
add ebx, eax
mov eax, dword [esp + 0x9c]
mov dword [esp], eax
call fcn.00595380
mov dword [esp + 0x9c], 0
mov eax, ebx
not eax
and eax, 1
mov ecx, ebx
add ecx, eax
setne cl
movzx ecx, cl
cmp ebx, ecx
jb 0x522aa0
mov bl, byte [esp + 0x54]
mov bh, byte [esp + 0x1f]
jmp 0x522403
xor esi, esi
jmp 0x522b25
mov edi, 6
mov byte [esp + 0x54], 0x39
mov eax, ebx
not eax
and eax, 1
add eax, ebx
setne al
movzx eax, al
add ebx, eax
mov eax, dword [esp + 0x9c]
mov dword [esp], eax
call fcn.00595380
mov dword [esp + 0x9c], 0
mov eax, 3
sub eax, ebx
xor eax, ebx
setne al
movzx eax, al
cmp ebx, eax
jb 0x522af0
mov bl, byte [esp + 0x54]
mov bh, byte [esp + 0x1f]
cmp edi, 6
je 0x522403
jmp 0x52281b
cmp esi, 0xf
jne 0x522ba6
mov byte [0x80dc38], 1
mov esi, 0x1a
call fcn.00508480
call fcn.00597bd0
mov eax, dword [0x80dc34]
mov dword [esp], eax
call fcn.007c74e0
test eax, eax
je 0x522b4e
mov edi, 7
imul eax, eax
and eax, 3
cmp eax, 2
je 0x522b4e
cmp edi, 7
je 0x522bad
xor eax, eax
test al, al
jne 0x522bad
mov dword [esp], str.Failed_to_lock_certificate_handler_n
call fcn.00441610
call fcn.0044c0e0
xor eax, eax
jmp 0x5224bd
mov dword [esp], str.Failed_to_unlock_certificate_handler_n
call fcn.00441610
call fcn.0044c0d0
int3