Function at 0x10051e60
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101ec365
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2c8
mov eax, dword [0x10275008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [ebp - 0x2a8]
mov dword [ebp - 0x2a8], 0
call fcn.100de780
mov dword [ebp - 4], 0
mov edx, edi
cmp edi, 0x20
je 0x10051ece
xor eax, eax
cmp edi, 0x40
cmovne edx, eax
mov eax, dword [ebp - 0x2a8]
mov dword [eax], 0
cmp edx, 0x40
jne 0x10051ee5
mov dword [eax], 0x100
xor eax, eax
mov dword [ebp - 0x278], 0
mov dword [ebp - 0x274], 0
mov dword [ebp - 0x278], 0
mov dword [ebp - 0x274], 7
mov word [ebp - 0x288], ax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x240]
push 8
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x22c], eax
push str.FuncName
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x22c], 7
mov word [ebp - 0x240], ax
call fcn.10005390
mov byte [ebp - 4], 2
xor eax, eax
push 0x77
mov dword [ebp - 0x248], 0
lea ecx, [ebp - 0x258]
mov dword [ebp - 0x244], 0
push str.SOFTWAREMicrosoftCryptographyOIDEncodingType_0CryptSIPDllVerifyIndirectDataC689AAB8_8E78_11D0_8C47_00C04FC295EE
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 7
mov word [ebp - 0x258], ax
call fcn.10005390
mov byte [ebp - 4], 3
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x258]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x2a8]
call fcn.100dee80
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x258]
call fcn.10005300
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x240]
call fcn.10005300
cmp dword [ebp - 0x274], 8
lea ecx, [ebp - 0x288]
jb 0x10051ff6
mov ecx, dword [ebp - 0x288]
test ecx, ecx
je 0x10052004
mov edx, str.CryptSIPVerifyIndirectData
call fcn.100ddbb0
test al, al
jne 0x10052010
mov byte [ebp - 0x2a1], 0
jmp 0x100523b6
xor eax, eax
mov dword [ebp - 0x260], 0
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x260], 0
mov dword [ebp - 0x25c], 7
mov word [ebp - 0x270], ax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x240]
push 3
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x22c], eax
push 0x102341f4
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x22c], 7
mov word [ebp - 0x240], ax
call fcn.10005390
mov byte [ebp - 4], 5
xor eax, eax
push 0x77
mov dword [ebp - 0x248], 0
lea ecx, [ebp - 0x258]
mov dword [ebp - 0x244], 0
push str.SOFTWAREMicrosoftCryptographyOIDEncodingType_0CryptSIPDllVerifyIndirectDataC689AAB8_8E78_11D0_8C47_00C04FC295EE
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 7
mov word [ebp - 0x258], ax
call fcn.10005390
mov byte [ebp - 4], 6
lea eax, [ebp - 0x270]
push eax
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x258]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x2a8]
call fcn.100dee80
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x258]
call fcn.10005300
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x240]
call fcn.10005300
cmp dword [ebp - 0x25c], 8
lea ecx, [ebp - 0x270]
jb 0x10052121
mov ecx, dword [ebp - 0x270]
test ecx, ecx
je 0x10052139
mov edx, str.WINTRUST.DLL
call fcn.100ddbb0
mov byte [ebp - 0x2a1], al
test al, al
jne 0x100523a7
lea edx, [ebp - 0x270]
mov byte [ebp - 0x2a1], 1
lea ecx, [ebp - 0x2c0]
call fcn.100ea790
mov esi, eax
mov byte [ebp - 4], 7
lea eax, [ebp - 0x270]
cmp eax, esi
je 0x10052192
mov ecx, eax
call fcn.10005300
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x270], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x260], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c0]
call fcn.10005300
lea edx, [ebp - 0x270]
lea ecx, [ebp - 0x2a0]
call fcn.100e08e0
mov byte [ebp - 4], 8
xor eax, eax
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 7
mov word [ebp - 0x258], ax
mov byte [ebp - 4], 9
push 0x20c
push eax
lea eax, [ebp - 0x228]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x228]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x10052389
xor eax, eax
lea ecx, [ebp - 0x228]
mov word [ebp - 0x1e], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10052230
sub ecx, edx
lea eax, [ebp - 0x228]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x258]
call fcn.10005390
xor eax, eax
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 7
mov word [ebp - 0x240], ax
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x2c0]
cmp edi, 0x40
jne 0x100522d1
push str.system32WINTRUST.DLL
call fcn.10005290
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x2c0]
push eax
lea edx, [ebp - 0x258]
lea ecx, [ebp - 0x2d8]
call fcn.100e17c0
add esp, 4
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x240]
push eax
call fcn.10008620
mov byte [ebp - 4], 0xb
jmp 0x1005230e
push str.SysWOW64WINTRUST.DLL
call fcn.10005290
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x2c0]
push eax
lea edx, [ebp - 0x258]
lea ecx, [ebp - 0x2d8]
call fcn.100e17c0
add esp, 4
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x240]
push eax
call fcn.10008620
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x2d8]
call fcn.10005300
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x2c0]
call fcn.10005300
cmp dword [ebp - 0x22c], 8
lea edx, [ebp - 0x240]
lea ecx, [ebp - 0x270]
cmovae edx, dword [ebp - 0x240]
cmp dword [ebp - 0x25c], 8
jb 0x10052360
mov ecx, dword [ebp - 0x270]
test ecx, ecx
jne 0x10052360
test edx, edx
sete byte [ebp - 0x2a1]
jmp 0x1005237a
test edx, edx
jne 0x1005236f
test ecx, ecx
sete byte [ebp - 0x2a1]
jmp 0x1005237a
call fcn.100ddbb0
mov byte [ebp - 0x2a1], al
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x240]
call fcn.10005300
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x258]
call fcn.10005300
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2a0]
call fcn.10005300
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x270]
call fcn.10005300
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x288]
call fcn.10005300
mov dword [ebp - 4], 0xffffffff
push 8
push dword [ebp - 0x2a8]
call fcn.101c8702
mov al, byte [ebp - 0x2a1]
add esp, 8
mov dword [ebp - 0x2a8], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.101c837b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret