Function at 0x4a6170
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xe4
mov eax, dword [0x5184d0]
xor eax, esp
mov dword [esp + 0xe0], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x10]
push esi
mov dword [esp + 0x2c], eax
xor esi, esi
mov eax, dword [ebp + 0x14]
mov ebx, esi
push edi
mov dword [esp + 0x40], eax
mov edi, esi
push 0xf0000000
mov dword [eax], esi
xor eax, eax
inc eax
mov dword [esp + 0x28], ecx
mov ecx, dword [ebp + 0x18]
push eax
push esi
push esi
lea eax, [esp + 0x24]
mov dword [esp + 0x44], edx
push eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x30], esi
mov dword [ecx], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 2
pop ecx
test eax, eax
jne 0x4a61fd
call fcn.004c73cc
mov esi, eax
push esi
push 0x96c013e
jmp 0x4a6223
lea eax, [esp + 0x20]
push eax
push 0x2000001
push ecx
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptGenKey]
test eax, eax
jne 0x4a6229
call fcn.004c73cc
mov esi, eax
push esi
push 0x978013e
call dword [sym.imp.certcli.dll_Ordinal_357]
cmp dword [esp + 0x20], ebx
je 0x4a6239
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
test esi, esi
je 0x4a624e
push esi
push 0xb26013e
call dword [sym.imp.certcli.dll_Ordinal_357]
jmp 0x4a679d
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x1c]
push eax
push ecx
push ecx
mov ecx, dword [esp + 0x24]
push 2
pop eax
mov edx, eax
call fcn.004c62a9
test eax, eax
jne 0x4a6288
call fcn.004c73cc
mov esi, eax
push esi
push 0xb30013e
call dword [sym.imp.certcli.dll_Ordinal_357]
mov ebx, dword [esp + 0x18]
jmp 0x4a679d
mov ebx, dword [esp + 0x18]
lea eax, [esp + 0x10]
mov ecx, dword [ebx + 0x10]
lea edi, [ebx + 0xc]
mov edx, dword [edi]
push edi
push eax
call fcn.004d49a3
mov esi, eax
test esi, esi
je 0x4a62b6
push esi
push 0xb45013e
call dword [sym.imp.certcli.dll_Ordinal_357]
jmp 0x4a6799
mov edx, edi
lea ecx, [esp + 0x10]
call fcn.004a60f0
mov esi, eax
test esi, esi
je 0x4a62cf
push esi
push 0xb48013e
jmp 0x4a62ab
mov eax, dword [esp + 0x10]
push 0x70
mov dword [ebx + 0x10], eax
lea eax, [esp + 0x4c]
push 0
push eax
call sub.msvcrt.dll_memset
mov edx, dword [ebp + 8]
lea eax, [esp + 0x34]
mov ecx, dword [esp + 0x20]
add esp, 0xc
push eax
call fcn.004a6091
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x28]
mov dword [esp + 0x50], eax
push 4
pop eax
mov dword [esp + 0x4c], eax
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x60], eax
lea eax, [esp + 0xdc]
push eax
mov dword [esp + 0x58], 0x420590
mov dword [esp + 0x68], ecx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
xor eax, eax
mov ecx, dword [esp + 0xde]
lea edi, [esp + 0xcc]
mov edx, dword [esp + 0xdc]
stosd dword es:[edi], eax
push 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
inc eax
mov word [esp + 0xd0], dx
mov word [esp + 0xd6], ax
pop eax
push 6
pop esi
push 4
mov word [esp + 0xd8], ax
lea eax, [ecx - 2]
pop edi
cmp ax, di
ja 0x4a637a
xor eax, eax
inc eax
jmp 0x4a637c
mov eax, esi
mov word [esp + 0xce], ax
cmp ax, cx
jbe 0x4a6394
lea eax, [edx - 1]
mov word [esp + 0xcc], ax
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0xd0]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
jne 0x4a63bd
call fcn.004c73cc
mov esi, eax
push esi
push 0xb80013e
jmp 0x4a62ab
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x70], eax
lea eax, [esp + 0xbc]
push eax
lea eax, [esp + 0x6c]
mov dword [esp + 0x78], ecx
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
cmp dword [esp + 0x24], 0
jne 0x4a6569
mov eax, 0xfff6
add word [esp + 0xbc], ax
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
push 0x1d
pop esi
push 0x1e
pop edi
test eax, eax
jne 0x4a64a8
push 9
pop ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4a64a4
mov ax, word [esp + 0xbe]
push 2
pop ecx
cmp ax, cx
jne 0x4a645a
cmp word [esp + 0xc2], si
jbe 0x4a644b
mov word [esp + 0xc2], si
jmp 0x4a6489
jne 0x4a64a4
push 0x1c
pop eax
mov word [esp + 0xc2], ax
jmp 0x4a6489
cmp ax, bx
je 0x4a6477
push 4
pop ecx
cmp ax, cx
je 0x4a6477
push 6
pop ecx
cmp ax, cx
je 0x4a6477
push 0xb
pop ecx
cmp ax, cx
jne 0x4a64a4
cmp word [esp + 0xc2], di
jbe 0x4a64a4
mov word [esp + 0xc2], di
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x4a641c
mov ebx, dword [esp + 0x18]
lea eax, [esp + 0xbc]
push eax
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
add word [esp + 0xbc], 0xa
jmp 0x4a6549
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4a66f0
mov ax, word [esp + 0xbe]
push 2
pop ecx
cmp ax, cx
jne 0x4a650f
cmp word [esp + 0xc2], si
jbe 0x4a64fc
mov word [esp + 0xc2], si
jmp 0x4a6549
jne 0x4a66f0
push 0x1c
pop eax
mov word [esp + 0xc2], ax
jmp 0x4a6549
push 9
pop ecx
cmp ax, cx
je 0x4a6533
push 4
pop ecx
cmp ax, cx
je 0x4a6533
push 6
pop ecx
cmp ax, cx
je 0x4a6533
push 0xb
pop ecx
cmp ax, cx
jne 0x4a66f0
cmp word [esp + 0xc2], di
jbe 0x4a66f0
mov word [esp + 0xc2], di
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x4a64c9
jmp 0x4a66f0
mov eax, 0xfffe
add word [esp + 0xbc], ax
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
push 0x1d
pop esi
push 0x1e
pop edi
test eax, eax
jne 0x4a6626
push 9
pop ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4a6622
mov ax, word [esp + 0xbe]
push 2
pop ecx
cmp ax, cx
jne 0x4a65d8
cmp word [esp + 0xc2], si
jbe 0x4a65c9
mov word [esp + 0xc2], si
jmp 0x4a6607
jne 0x4a6622
push 0x1c
pop eax
mov word [esp + 0xc2], ax
jmp 0x4a6607
cmp ax, bx
je 0x4a65f5
push 4
pop ecx
cmp ax, cx
je 0x4a65f5
push 6
pop ecx
cmp ax, cx
je 0x4a65f5
push 0xb
pop ecx
cmp ax, cx
jne 0x4a6622
cmp word [esp + 0xc2], di
jbe 0x4a6622
mov word [esp + 0xc2], di
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x4a659a
mov ebx, dword [esp + 0x18]
lea eax, [esp + 0xbc]
push eax
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov eax, 0xffff
add word [esp + 0xbc], ax
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
jne 0x4a66f0
push 9
pop ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4a66ec
mov ax, word [esp + 0xbe]
push 2
pop ecx
cmp ax, cx
jne 0x4a66a2
cmp word [esp + 0xc2], si
jbe 0x4a6693
mov word [esp + 0xc2], si
jmp 0x4a66d1
jne 0x4a66ec
push 0x1c
pop eax
mov word [esp + 0xc2], ax
jmp 0x4a66d1
cmp ax, bx
je 0x4a66bf
push 4
pop ecx
cmp ax, cx
je 0x4a66bf
push 6
pop ecx
cmp ax, cx
je 0x4a66bf
push 0xb
pop ecx
cmp ax, cx
jne 0x4a66ec
cmp word [esp + 0xc2], di
jbe 0x4a66ec
mov word [esp + 0xc2], di
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x4a6664
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x30]
lea edi, [esp + 0x80]
push 6
mov esi, ebx
mov eax, dword [edx]
mov edx, dword [edx + 4]
mov dword [esp + 0x7c], eax
pop eax
mov ecx, eax
mov dword [esp + 0x7c], edx
mov eax, dword [esp + 0x34]
rep movsd dword es:[edi], dword [esi]
test eax, eax
je 0x4a6721
mov edx, dword [eax + 0xc]
add edx, 0x38
jmp 0x4a6728
lea edx, [esp + 0x80]
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4a6734
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x20]
push ecx
push ecx
lea ecx, [esp + 0x54]
push ecx
mov ecx, eax
call fcn.004a5f87
mov esi, eax
test esi, esi
je 0x4a675c
push esi
push 0xba2013e
jmp 0x4a62ab
push dword [esp + 0x38]
xor eax, eax
push dword [esp + 0x20]
inc eax
push eax
call dword [sym.imp.CRYPT32.dll_CertCreateCertificateContext]
mov ecx, dword [esp + 0x3c]
mov dword [ecx], eax
test eax, eax
jne 0x4a678a
call fcn.004c73cc
mov esi, eax
push esi
push 0xbac013e
jmp 0x4a62ab
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x14]
and dword [esp + 0x14], 0
mov dword [ecx], eax
mov edi, dword [esp + 0x10]
cmp dword [esp + 0x14], 0
je 0x4a67b0
push 0
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp dword [esp + 0x1c], 0
je 0x4a67c1
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
je 0x4a67cc
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
je 0x4a67d7
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esp + 0xec]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005036b0
mov esp, ebp
pop ebp
ret 0x14