Function at 0x1002ccc4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
lea ebp, [esp - 0x404]
sub esp, 0x404
push 0xfffffffffffffffe
push 0x10074498
push 0x10047390
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x10083adc]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x400], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 0x40c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x410]
mov dword [ebp - 0x2c], eax
push str.Crypt32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x1002cd91
push str.CryptQueryObject
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov dword [0x10246570], eax
push str.CertFindCertificateInStore
push edi
call esi
mov dword [0x10246574], eax
push str.CertGetNameStringA
push edi
call esi
mov dword [0x10246578], eax
push str.CryptMsgGetParam
push edi
call esi
mov dword [0x1024657c], eax
push str.CryptMsgClose
push edi
call esi
mov dword [0x10246580], eax
push str.CertFreeCertificateContext
push edi
call esi
mov dword [0x10246584], eax
push str.CertCloseStore
push edi
call esi
mov dword [0x10232568], eax
cmp dword [0x10246570], ebx
je 0x1002cf8e
cmp dword [0x10246574], ebx
je 0x1002cf8e
cmp dword [0x10246578], ebx
je 0x1002cf8e
cmp dword [0x1024657c], ebx
je 0x1002cf8e
cmp dword [0x10246580], ebx
je 0x1002cf8e
cmp dword [0x10246584], ebx
je 0x1002cf8e
cmp dword [0x10232568], ebx
je 0x1002cf8e
mov esi, 0x400
push esi
lea eax, [ebp]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x40]
push ebx
push ebx
call fcn.1002c336
add esp, 0x18
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x28], ebx
xor eax, eax
lea edi, [ebp - 0x3c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x4c]
push eax
push ebx
push 2
push esi
lea eax, [ebp]
push eax
push 1
call dword [0x10246570]
cmp eax, ebx
je 0x1002cf19
lea eax, [ebp - 0x30]
push eax
push ebx
push ebx
push 6
push dword [ebp - 0x1c]
call dword [0x1024657c]
cmp eax, ebx
je 0x1002cf19
push dword [ebp - 0x30]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
mov dword [ebp - 0x28], edi
cmp edi, ebx
je 0x1002cf1c
lea eax, [ebp - 0x30]
push eax
push edi
push ebx
push 6
push dword [ebp - 0x1c]
call dword [0x1024657c]
cmp eax, ebx
je 0x1002cf1c
mov eax, dword [edi + 4]
mov dword [ebp - 0xa4], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0xa0], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0xb8], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0xb4], eax
push ebx
lea eax, [ebp - 0xbc]
push eax
push 0xb0000
push ebx
push 0x10001
push dword [ebp - 0x20]
call dword [0x10246574]
mov esi, eax
mov dword [ebp - 0x24], esi
cmp esi, ebx
je 0x1002cf1c
push ebx
push ebx
push ebx
push ebx
push 4
push esi
call dword [0x10246578]
cmp eax, ebx
je 0x1002cf1c
cmp eax, 0x200
jbe 0x1002cefb
mov eax, 0x1ff
push eax
push dword [ebp - 0x2c]
push ebx
push ebx
push 4
push esi
call dword [0x10246578]
test eax, eax
je 0x1002cf1c
push dword [ebp - 0x2c]
call fcn.10044e58
pop ecx
jmp 0x1002cf1c
mov edi, dword [ebp - 0x28]
mov dword [ebp - 4], 0xfffffffe
jmp 0x1002cf38
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x3c], ebx
je 0x1002cf48
push dword [ebp - 0x3c]
call esi
cmp dword [ebp - 0x38], ebx
je 0x1002cf52
push dword [ebp - 0x38]
call esi
cmp dword [ebp - 0x34], ebx
je 0x1002cf5c
push dword [ebp - 0x34]
call esi
cmp edi, ebx
je 0x1002cf63
push edi
call esi
cmp dword [ebp - 0x24], ebx
je 0x1002cf71
push dword [ebp - 0x24]
call dword [0x10246584]
cmp dword [ebp - 0x20], ebx
je 0x1002cf80
push ebx
push dword [ebp - 0x20]
call dword [0x10232568]
cmp dword [ebp - 0x1c], ebx
je 0x1002cf8e
push dword [ebp - 0x1c]
call dword [0x10246580]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x400]
xor ecx, ebp
call fcn.10044b6f
add ebp, 0x404
leave
ret