Function at 0x10003e7b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100102e8
push 0x1000f3d2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x888
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0xb4], ebx
push 0x1b
pop ecx
xor eax, eax
lea edi, [ebp - 0xb0]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
mov edi, 0xfffffc03
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], ebx
push str.crypt32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0xb8], eax
cmp eax, ebx
je 0x10003f62
push str.CryptQueryObject
push eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov dword [ebp - 0xc4], eax
cmp eax, ebx
je 0x10003f62
push str.CryptMsgGetParam
push dword [ebp - 0xb8]
call esi
mov dword [ebp - 0xc0], eax
cmp eax, ebx
je 0x10003f62
push str.CertFindCertificateInStore
push dword [ebp - 0xb8]
call esi
mov dword [ebp - 0x898], eax
cmp eax, ebx
je 0x10003f62
push str.CertGetNameStringA
push dword [ebp - 0xb8]
call esi
mov dword [ebp - 0xbc], eax
cmp eax, ebx
je 0x10003f62
push str.CertFreeCertificateContext
push dword [ebp - 0xb8]
call esi
mov dword [ebp - 0x24], eax
cmp eax, ebx
jne 0x10003f6a
mov dword [ebp - 0x38], edi
jmp 0x10004098
push 0x7d0
lea eax, [ebp - 0x894]
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x44]
push eax
push ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 2
push 0x400
lea eax, [ebp - 0x894]
push eax
push 1
call dword [ebp - 0xc4]
test eax, eax
je 0x1000407c
lea eax, [ebp - 0x34]
push eax
push ebx
push ebx
push 6
push dword [ebp - 0x40]
call dword [ebp - 0xc0]
test eax, eax
je 0x1000407c
push dword [ebp - 0x34]
mov edi, dword [sym.imp.MSVCRT.dll_malloc]
call edi
pop ecx
mov esi, eax
mov dword [ebp - 0x30], esi
cmp esi, ebx
je 0x1000407c
lea eax, [ebp - 0x34]
push eax
push esi
push ebx
push 6
push dword [ebp - 0x40]
call dword [ebp - 0xc0]
test eax, eax
je 0x1000407c
mov eax, dword [esi + 4]
mov dword [ebp - 0x9c], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x98], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0xb0], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0xac], eax
push ebx
lea eax, [ebp - 0xb4]
push eax
push 0xb0000
push ebx
push 0x10001
push dword [ebp - 0x44]
call dword [ebp - 0x898]
mov dword [ebp - 0x3c], eax
cmp eax, ebx
je 0x1000407c
push ebx
push ebx
push ebx
push ebx
push 4
push eax
call dword [ebp - 0xbc]
mov dword [ebp - 0x34], eax
cmp eax, ebx
je 0x1000407c
push eax
call edi
pop ecx
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp esi, ebx
je 0x1000407c
push dword [ebp - 0x34]
push esi
push ebx
push ebx
push 4
push dword [ebp - 0x3c]
call dword [ebp - 0xbc]
mov dword [ebp - 0x34], eax
cmp eax, ebx
jne 0x10004085
mov dword [ebp - 0x38], 0xfffffc04
jmp 0x10004098
push dword [ebp + 0x10]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov dword [ebp - 0x38], ebx
or dword [ebp - 4], 0xffffffff
call fcn.100040b7
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0xc