Function at 0x140038c40
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x1e8
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0xa0], 0
mov dword [rsp + 0x90], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x200]
call fcn.140038850
test eax, eax
jne 0x140038cc6
mov ecx, 0x7e
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140039131
cmp qword [0x1405dc320], 0
jne 0x140038dcf
xor edx, edx
lea rcx, str.crypt32.dll
call fcn.140037b60
mov qword [0x1405dc320], rax
cmp qword [0x1405dc320], 0
je 0x140038dcf
lea rdx, str.CryptMsgClose
mov rcx, qword [0x1405dc320]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1405dc328], rax
lea rdx, str.CertCloseStore
mov rcx, qword [0x1405dc320]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1405dc330], rax
lea rdx, str.CertFreeCertificateContext
mov rcx, qword [0x1405dc320]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1405dc338], rax
lea rdx, str.CertFindCertificateInStore
mov rcx, qword [0x1405dc320]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1405dc340], rax
lea rdx, str.CryptMsgGetParam
mov rcx, qword [0x1405dc320]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1405dc348], rax
lea rdx, str.CryptQueryObject
mov rcx, qword [0x1405dc320]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1405dc350], rax
lea rdx, str.CertGetNameStringA
mov rcx, qword [0x1405dc320]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1405dc358], rax
lea rdx, str.CryptDecodeObject
mov rcx, qword [0x1405dc320]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1405dc360], rax
cmp qword [0x1405dc328], 0
je 0x140038e1f
cmp qword [0x1405dc330], 0
je 0x140038e1f
cmp qword [0x1405dc338], 0
je 0x140038e1f
cmp qword [0x1405dc340], 0
je 0x140038e1f
cmp qword [0x1405dc348], 0
je 0x140038e1f
cmp qword [0x1405dc350], 0
je 0x140038e1f
cmp qword [0x1405dc358], 0
je 0x140038e1f
cmp qword [0x1405dc360], 0
jne 0x140038e26
xor eax, eax
jmp 0x140039192
mov qword [rsp + 0x50], 0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x88]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x94]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x180]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9d, 2
mov r8d, 0x400
mov rdx, qword [rsp + 0x200]
mov ecx, 1
call qword [0x1405dc350]
mov dword [rsp + 0x90], eax
cmp dword [rsp + 0x90], 0
jne 0x140038eb7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x184], eax
jmp 0x140039131
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 6
mov rcx, qword [rsp + 0x78]
call qword [0x1405dc348]
mov dword [rsp + 0x90], eax
cmp dword [rsp + 0x90], 0
jne 0x140038efa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x188], eax
jmp 0x140039131
mov edx, dword [rsp + 0x68]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jne 0x140038f28
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x18c], eax
jmp 0x140039131
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x70]
xor r8d, r8d
mov edx, 6
mov rcx, qword [rsp + 0x78]
call qword [0x1405dc348]
mov dword [rsp + 0x90], eax
cmp dword [rsp + 0x90], 0
jne 0x140038f6d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x190], eax
jmp 0x140039131
lea rdi, [rsp + 0x1d0]
mov rsi, qword [rsp + 0x70]
add rsi, 8
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0xe0]
lea rsi, [rsp + 0x1d0]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x1c0]
mov rsi, qword [rsp + 0x70]
add rsi, 0x18
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0xb8]
lea rsi, [rsp + 0x1c0]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
mov r9d, 0xb0000
xor r8d, r8d
mov edx, 0x10001
mov rcx, qword [rsp + 0x88]
call qword [0x1405dc340]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x14003901c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x194], eax
jmp 0x140039131
cmp qword [rsp + 0x208], 0
je 0x140039059
mov rcx, qword [rsp + 0x60]
call fcn.140039320
mov edx, eax
mov rax, qword [rsp + 0x208]
mov dword [rax], edx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x198], eax
cmp dword [rsp + 0x198], 0
je 0x140039059
jmp 0x140039131
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x70]
call fcn.140039580
test eax, eax
jne 0x140039074
jmp 0x140039131
lea rdi, [rsp + 0x1b0]
mov rsi, qword [rsp + 0xa0]
add rsi, 8
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0xe0]
lea rsi, [rsp + 0x1b0]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x1a0]
mov rsi, qword [rsp + 0xa0]
add rsi, 0x18
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0xb8]
lea rsi, [rsp + 0x1a0]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
mov r9d, 0xb0000
xor r8d, r8d
mov edx, 0x10001
mov rcx, qword [rsp + 0x88]
call qword [0x1405dc340]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x140039126
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x19c], eax
jmp 0x140039131
mov dword [rsp + 0x90], 1
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp qword [rsp + 0x60], 0
je 0x14003915d
mov rcx, qword [rsp + 0x60]
call qword [0x1405dc338]
cmp qword [rsp + 0x88], 0
je 0x140039178
xor edx, edx
mov rcx, qword [rsp + 0x88]
call qword [0x1405dc330]
cmp qword [rsp + 0x78], 0
je 0x14003918b
mov rcx, qword [rsp + 0x78]
call qword [0x1405dc328]
mov eax, dword [rsp + 0x90]
add rsp, 0x1e8
pop rdi
pop rsi
ret