Function at 0x461660
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x4de880]
xor eax, ebp
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x249], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x238], 0
push 0x208
push 0
lea eax, [ebp - 0x234]
push eax
call fcn.0043ff60
add esp, 0xc
mov byte [ebp - 0x241], 0
push 0x4b6360
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x461795
push str.CryptCATAdminCalcHashFromFileHandle
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
push str.CryptCATAdminEnumCatalogFromHash
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x240], eax
push str.CryptCATAdminAcquireContext
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
push str.CryptCATAdminReleaseContext
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x23c], eax
push str.CryptCATCatalogInfoFromContext
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 4], 0
je 0x46177d
cmp dword [ebp - 0x240], 0
je 0x46177d
cmp dword [ebp - 0xc], 0
je 0x46177d
cmp dword [ebp - 0x23c], 0
je 0x46177d
cmp dword [ebp - 0x24], 0
je 0x46177d
mov dword [ebp - 0x250], 1
jmp 0x461787
mov dword [ebp - 0x250], 0
mov al, byte [ebp - 0x250]
mov byte [ebp - 0x241], al
jmp 0x46179c
xor al, al
jmp 0x46192c
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x4617cb
jmp 0x4618ed
movzx edx, byte [ebp - 0x241]
test edx, edx
je 0x4618db
push 0
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [ebp - 4]
test eax, eax
jne 0x4617f7
jmp 0x4618ed
mov edx, dword [ebp - 8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x46181d
jmp 0x4618ed
push 0
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call dword [ebp - 4]
test eax, eax
jne 0x46183c
jmp 0x4618ed
push 0
push 0
lea eax, [ebp - 0x248]
push eax
call dword [ebp - 0xc]
test eax, eax
je 0x4618d9
push 0
push 0
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x248]
push eax
call dword [ebp - 0x240]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x248], 0
je 0x4618b8
mov dword [ebp - 0x238], 0x20c
push 0
lea ecx, [ebp - 0x238]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [ebp - 0x24]
test eax, eax
je 0x4618b6
lea eax, [ebp - 0x234]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.004614e0
add esp, 0x10
mov byte [ebp - 0x249], al
jmp 0x4618ca
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.004615b0
add esp, 4
mov byte [ebp - 0x249], al
push 0
mov edx, dword [ebp - 0x248]
push edx
call dword [ebp - 0x23c]
jmp 0x4618ed
mov eax, dword [ebp - 0x20]
push eax
call fcn.004615b0
add esp, 4
mov byte [ebp - 0x249], al
cmp dword [ebp - 0x10], 0
je 0x461906
mov ecx, dword [ebp - 0x10]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0x20], 0xffffffff
je 0x461916
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], 0
je 0x461926
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, byte [ebp - 0x249]
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.0043f9e9
mov esp, ebp
pop ebp
ret