Function at 0x589cc8
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], esp
push 0xf0000000
push 0x18
push 0x66d8c6
push 0x66d8c6
lea eax, [ebp - 4]
push eax
xor eax, eax
call dword [sym.imp.advapi32.dll_CryptAcquireContextA]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x589d43
push 0x24
push 0x43300a7
push 6
call fcn.005b82f8
add esp, 0xc
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x589da8
mov dword [ebp - 0x20], esp
push 0
push 0x18
push 0x66d8c6
push 0x66d8c6
lea eax, [ebp - 4]
push eax
xor eax, eax
call dword [sym.imp.advapi32.dll_CryptAcquireContextA]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x589d91
push 0x7d
push 0x43300a7
push 6
call fcn.005b82f8
add esp, 0xc
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x589da8
mov eax, 0x66df3e
jmp 0x58a3b2
cmp dword [ebp + 0x10], 0x800d
je 0x589dc6
cmp dword [ebp + 0x10], 0x800e
je 0x589dc6
xor eax, eax
jmp 0x589dcb
mov eax, 1
test eax, eax
je 0x589ddf
mov dword [ebp - 8], 0x80
jmp 0x589de6
mov dword [ebp - 8], 0x40
push reloc.WS2_32.dll_getpeername
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x589dfb
mov eax, 0x66df3e
push eax
push 1
mov ebx, 0x194
call fcn.005ba570
add esp, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x24], eax
jle 0x589ef6
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [ebp - 4]
call fcn.005894c3
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x589e42
push ebx
call fcn.005b82ec
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov eax, 0x66df3e
xor ecx, ecx
test eax, eax
je 0x589e54
mov ecx, dword [eax + 4]
push ecx
add eax, 8
push eax
mov eax, dword [ebp - 0xc]
xor ebx, ebx
test eax, eax
je 0x589e65
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x589e7c
dec eax
test ecx, ecx
je 0x589e7c
call fcn.00478b1f
add esp, 0xc
test eax, eax
jne 0x589ec2
mov dword [ebp - 0x20], esp
push 0
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.advapi32.dll_CryptReleaseContext]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x589eb8
push 0x26b
push 0x43300a7
push 6
call fcn.005b82f8
add esp, 0xc
mov eax, 0x66df3e
jmp 0x58a3b2
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x589edc
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.005b82e0
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x589eed
push ebx
call fcn.005b82ec
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
jmp 0x589f27
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
je 0x589f12
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.005b82e0
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x589f23
push ebx
call fcn.005b82ec
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x589f3a
mov eax, 0x66df3e
push eax
push 1
mov ebx, 0x194
call fcn.005ba570
add esp, 0x10
mov dword [ebp - 0x20], eax
fild dword [ebp - 8]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
fild dword [ebp - 0x20]
fstp qword [ebp - 0x30]
fsub qword [ebp - 0x30]
fstp qword [ebp - 0x38]
fld qword [ebp - 0x38]
call fcn.0046cf90
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x1bc
call fcn.005ba540
add esp, 0x10
mov dword [ebp - 0x3c], eax
push dword [ebp - 0x3c]
push dword [ebp - 0x10]
mov ecx, 2
call fcn.00483a89
add esp, 8
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x589fb0
push ebx
call fcn.005b82ec
add esp, 4
mov eax, dword [ebp - 0x40]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x589fc4
push ebx
call fcn.005b82ec
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
push 0x80000301
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x1bc
call fcn.005ba540
add esp, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x589ffb
push ebx
call fcn.005b82ec
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push 0x80000301
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x1bc
call fcn.005ba540
add esp, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x58a032
push ebx
call fcn.005b82ec
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
xor ecx, ecx
push eax
lea eax, [ebp - 0x1c]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x58a1e6
mov ebx, dword [ebp - 0x14]
call fcn.0046df73
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x58a077
push 0x401
push 0x43300a7
push 4
call fcn.005b82f8
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x58a094
push 0x401
push 0x43300a7
push 1
call fcn.005b82f8
add esp, 0xc
add ebx, eax
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x10]
call fcn.0046df73
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x58a0c0
push 0x421
push 0x43300a7
push 4
call fcn.005b82f8
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x58a0dd
push 0x421
push 0x43300a7
push 1
call fcn.005b82f8
add esp, 0xc
add ebx, eax
mov dword [ebp - 0x24], ebx
push 0x80000301
push 0
push 0x36
mov ebx, dword [ebp - 0x24]
mov al, byte [ebx]
and eax, 0xff
push 0x80000301
push 0
push eax
push 2
mov ebx, 0xcc
call fcn.005bd790
add esp, 0x1c
mov ebx, dword [ebp - 0x20]
mov byte [ebx], al
mov ebx, dword [ebp - 0x18]
call fcn.0046df73
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x58a13e
push 0x44c
push 0x43300a7
push 4
call fcn.005b82f8
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x58a15b
push 0x44c
push 0x43300a7
push 1
call fcn.005b82f8
add esp, 0xc
add ebx, eax
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x10]
call fcn.0046df73
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x58a187
push 0x46c
push 0x43300a7
push 4
call fcn.005b82f8
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x58a1a4
push 0x46c
push 0x43300a7
push 1
call fcn.005b82f8
add esp, 0xc
add ebx, eax
mov dword [ebp - 0x24], ebx
push 0x80000301
push 0
push 0x5c
mov ebx, dword [ebp - 0x24]
mov al, byte [ebx]
and eax, 0xff
push 0x80000301
push 0
push eax
push 2
mov ebx, 0xcc
call fcn.005bd790
add esp, 0x1c
mov ebx, dword [ebp - 0x20]
mov byte [ebx], al
pop eax
pop ebx
pop ecx
jmp 0x58a042
add esp, 0xc
mov ebx, dword [ebp + 8]
push dword [ebx]
push dword [ebp - 0x14]
mov ecx, 2
call fcn.00483a89
add esp, 8
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x58a215
push ebx
call fcn.005b82ec
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
push dword [ebp - 4]
call fcn.005894c3
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x58a23f
push ebx
call fcn.005b82ec
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov eax, 0x66df3e
xor ecx, ecx
test eax, eax
je 0x58a251
mov ecx, dword [eax + 4]
push ecx
add eax, 8
push eax
mov eax, dword [ebp - 0xc]
xor ebx, ebx
test eax, eax
je 0x58a262
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x58a279
dec eax
test ecx, ecx
je 0x58a279
call fcn.00478b1f
add esp, 0xc
test eax, eax
jne 0x58a2bf
mov dword [ebp - 0x20], esp
push 0
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.advapi32.dll_CryptReleaseContext]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x58a2b5
push 0x56a
push 0x43300a7
push 6
call fcn.005b82f8
add esp, 0xc
mov eax, 0x66df3e
jmp 0x58a3b2
push dword [ebp - 0xc]
push dword [ebp - 0x18]
mov ecx, 2
call fcn.00483a89
add esp, 8
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x58a2e9
push ebx
call fcn.005b82ec
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x10]
push dword [ebp - 4]
call fcn.005894c3
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x58a313
push ebx
call fcn.005b82ec
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov eax, 0x66df3e
xor ecx, ecx
test eax, eax
je 0x58a325
mov ecx, dword [eax + 4]
push ecx
add eax, 8
push eax
mov eax, dword [ebp - 0xc]
xor ebx, ebx
test eax, eax
je 0x58a336
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x58a34d
dec eax
test ecx, ecx
je 0x58a34d
call fcn.00478b1f
add esp, 0xc
test eax, eax
jne 0x58a393
mov dword [ebp - 0x20], esp
push 0
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.advapi32.dll_CryptReleaseContext]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x58a389
push 0x676
push 0x43300a7
push 6
call fcn.005b82f8
add esp, 0xc
mov eax, 0x66df3e
jmp 0x58a3b2
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x58a3ad
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.005b82e0
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x58a3b2
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x58a3c3
push ebx
call fcn.005b82ec
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x58a3d3
push ebx
call fcn.005b82ec
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x58a3e3
push ebx
call fcn.005b82ec
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x58a3f3
push ebx
call fcn.005b82ec
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc