Function at 0x1002ce47
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
lea ebp, [esp - 0x404]
sub esp, 0x404
push 0xfffffffffffffffe
push 0x10074828
push 0x10047840
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x10084adc]
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 0x1002cf14
push str.CryptQueryObject
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov dword [0x10247570], eax
push str.CertFindCertificateInStore
push edi
call esi
mov dword [0x10247574], eax
push str.CertGetNameStringA
push edi
call esi
mov dword [0x10247578], eax
push str.CryptMsgGetParam
push edi
call esi
mov dword [0x1024757c], eax
push str.CryptMsgClose
push edi
call esi
mov dword [0x10247580], eax
push str.CertFreeCertificateContext
push edi
call esi
mov dword [0x10247584], eax
push str.CertCloseStore
push edi
call esi
mov dword [0x10233568], eax
cmp dword [0x10247570], ebx
je 0x1002d111
cmp dword [0x10247574], ebx
je 0x1002d111
cmp dword [0x10247578], ebx
je 0x1002d111
cmp dword [0x1024757c], ebx
je 0x1002d111
cmp dword [0x10247580], ebx
je 0x1002d111
cmp dword [0x10247584], ebx
je 0x1002d111
cmp dword [0x10233568], ebx
je 0x1002d111
mov esi, 0x400
push esi
lea eax, [ebp]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x40]
push ebx
push ebx
call fcn.1002c4b9
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 [0x10247570]
cmp eax, ebx
je 0x1002d09c
lea eax, [ebp - 0x30]
push eax
push ebx
push ebx
push 6
push dword [ebp - 0x1c]
call dword [0x1024757c]
cmp eax, ebx
je 0x1002d09c
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 0x1002d09f
lea eax, [ebp - 0x30]
push eax
push edi
push ebx
push 6
push dword [ebp - 0x1c]
call dword [0x1024757c]
cmp eax, ebx
je 0x1002d09f
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 [0x10247574]
mov esi, eax
mov dword [ebp - 0x24], esi
cmp esi, ebx
je 0x1002d09f
push ebx
push ebx
push ebx
push ebx
push 4
push esi
call dword [0x10247578]
cmp eax, ebx
je 0x1002d09f
cmp eax, 0x200
jbe 0x1002d07e
mov eax, 0x1ff
push eax
push dword [ebp - 0x2c]
push ebx
push ebx
push 4
push esi
call dword [0x10247578]
test eax, eax
je 0x1002d09f
push dword [ebp - 0x2c]
call fcn.10045308
pop ecx
jmp 0x1002d09f
mov edi, dword [ebp - 0x28]
mov dword [ebp - 4], 0xfffffffe
jmp 0x1002d0bb
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x3c], ebx
je 0x1002d0cb
push dword [ebp - 0x3c]
call esi
cmp dword [ebp - 0x38], ebx
je 0x1002d0d5
push dword [ebp - 0x38]
call esi
cmp dword [ebp - 0x34], ebx
je 0x1002d0df
push dword [ebp - 0x34]
call esi
cmp edi, ebx
je 0x1002d0e6
push edi
call esi
cmp dword [ebp - 0x24], ebx
je 0x1002d0f4
push dword [ebp - 0x24]
call dword [0x10247584]
cmp dword [ebp - 0x20], ebx
je 0x1002d103
push ebx
push dword [ebp - 0x20]
call dword [0x10233568]
cmp dword [ebp - 0x1c], ebx
je 0x1002d111
push dword [ebp - 0x1c]
call dword [0x10247580]
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.1004501f
add ebp, 0x404
leave
ret