Function at 0x411950
Capabilities:
Get common file path
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448569
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x45c070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [esi + 4]
push eax
mov ecx, 0x450e90
mov dword [esi], vtable.CService.0
call fcn.004037a0
lea ecx, [esi + 8]
push ecx
xor ebx, ebx
mov ecx, 0x451920
mov dword [ebp - 4], ebx
call fcn.004037a0
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x20], 0x120
mov dword [esi + 0x28], 5
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], 0x7d0
mov dword [ebp - 4], 1
lea eax, [esi + 0x54]
push connect
push eax
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov byte [esi + 0x50], bl
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
push ebx
push 0x1000
push 0x40000
mov dword [esi + 0x6c], ebx
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [esi + 0x70], eax
mov dword [esi], vtable.CInstaller.0
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov byte [ebp - 4], 3
mov byte [esi + 0x7c], bl
mov edx, dword [0x46023c]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
mov edi, 0x104
sub eax, edi
or eax, ecx
jge 0x411a46
mov ecx, edi
mov eax, 0x46023c
call fcn.00403650
mov edx, dword [0x46023c]
cmp dword [edx - 8], edi
jge 0x411a55
push 0x80070057
call fcn.004036a0
mov dword [edx - 0xc], edi
mov ecx, dword [0x46023c]
push edi
xor eax, eax
push edx
mov word [ecx + 0x208], ax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov edx, dword [0x46023c]
cmp edx, ebx
jne 0x411a7d
xor eax, eax
jmp 0x411a95
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x411a82
sub eax, edi
sar eax, 1
cmp eax, ebx
jl 0x411a4b
cmp eax, dword [edx - 8]
jg 0x411a4b
mov dword [edx - 0xc], eax
mov ecx, dword [0x46023c]
xor edx, edx
mov word [ecx + eax*2], dx
mov edx, str.SysWOW64765C06F0_9640_46EC_8490_0097238389D7
cmp dword [0x45f3e8], ebx
jne 0x411abb
mov edx, str.System32765C06F0_9640_46EC_8490_0097238389D7
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x411ac0
sub eax, edi
sar eax, 1
push eax
push edx
push 0x46023c
call fcn.00403a70
mov edx, dword [0x460238]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x411b0a
mov ecx, 0x104
mov eax, 0x460238
call fcn.00403650
mov edx, dword [0x460238]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, dword [0x460238]
cmp edx, ebx
jne 0x411b24
xor eax, eax
jmp 0x411b47
mov eax, edx
lea edi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x411b30
sub eax, edi
sar eax, 1
cmp eax, ebx
jl 0x411a4b
cmp eax, dword [edx - 8]
jg 0x411a4b
mov dword [edx - 0xc], eax
mov ecx, dword [0x460238]
xor edx, edx
mov word [ecx + eax*2], dx
lea edx, [ebp - 0x14]
push 0x460238
push edx
mov ebx, str.sca_installer.log
call fcn.00406e70
add esp, 8
mov byte [ebp - 4], 4
mov ecx, dword [eax]
mov ebx, dword [0x45f3ec]
lea eax, [ecx - 0x10]
add ebx, 0xfffffff0
cmp eax, ebx
je 0x411bd4
cmp dword [ebx + 0xc], 0
lea edi, [ebx + 0xc]
jl 0x411bc6
mov edx, dword [eax]
cmp edx, dword [ebx]
jne 0x411bc6
call fcn.00403230
mov dword [ebp - 0x10], eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x411bb8
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
mov dword [0x45f3ec], ecx
jmp 0x411bd4
mov ebx, dword [ecx - 0xc]
push ecx
push 0x45f3ec
call fcn.004036c0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x411bf7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 9
push str.StaffCop_
push 0x460238
call fcn.00403a70
push str.Tahoma
xor edi, edi
push edi
push 2
push edi
push 4
push edi
push edi
push edi
push edi
push 0x2bc
push edi
push edi
push edi
push 0x10
call dword [sym.imp.GDI32.dll_CreateFontW]
mov dword [0x460244], eax
mov dword [0x45f350], edi
mov dword [0x45f34c], edi
push edi
push edi
push 1
push edi
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, eax
mov dword [ebp - 0x14], ebx
cmp ebx, edi
jne 0x411c57
call fcn.004227d0
lea ecx, [ebp - 0x14]
lea edi, [esi + 0x78]
cmp edi, ecx
je 0x411c78
mov eax, dword [edi]
test eax, eax
je 0x411c74
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
mov dword [edi], ebx
jmp 0x411c7f
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4