Function at 0x446e40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x545ec8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x58a710]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x30], edi
test byte [edi + 0x1c], 1
je 0x447031
mov byte [ebp - 0x25], 0
call fcn.00404730
mov ecx, eax
test ecx, ecx
jne 0x446e93
push 0x80004005
call fcn.004049a0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x24], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
mov dword [ebp - 4], 0
jge 0x446ec9
push 0x104
lea ecx, [ebp - 0x24]
call fcn.004053d0
mov esi, dword [ebp - 0x24]
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x446f29
push dword [esi - 8]
push esi
call fcn.0052644e
add esp, 8
test eax, eax
js 0x446fc8
cmp eax, dword [esi - 8]
jg 0x446fc8
mov dword [esi - 0xc], eax
mov byte [eax + esi], 0
mov ecx, dword [esi - 0xc]
lea eax, [ecx - 1]
test eax, eax
js 0x446fc8
cmp eax, ecx
jg 0x446fc8
mov al, byte [eax + esi]
cmp al, 0x5c
je 0x446f29
push 1
push 0x54e2a8
lea ecx, [ebp - 0x24]
call fcn.00423f00
push 0xb
push str.shell32.dll
lea ecx, [ebp - 0x24]
call fcn.00423f00
mov esi, dword [ebp - 0x24]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x446f5f
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x25], 1
test eax, eax
je 0x447012
xor ebx, ebx
mov byte [ebp - 0x26], 1
add edi, 0xc
mov eax, dword [edi]
test eax, eax
je 0x446f7f
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x446f7f
mov dword [edi], 0
push 0x1000
push 0
push 0
push 0
lea eax, [ebx + 0x85]
movzx eax, ax
push eax
push dword [ebp - 0x24]
call dword [sym.imp.USER32.dll_LoadImageA]
mov ecx, dword [edi]
mov dword [ebp - 0x2c], eax
test ecx, ecx
je 0x446fb4
cmp ecx, eax
je 0x446fb4
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 0x2c]
mov dword [edi], eax
test eax, eax
je 0x446fd2
inc ebx
add edi, 4
cmp ebx, 1
jle 0x446f68
mov bl, byte [ebp - 0x26]
jmp 0x446fd4
push 0x80070057
call fcn.004049a0
xor bl, bl
cmp byte [ebp - 0x25], 0
je 0x446fe3
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test bl, bl
je 0x44700f
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4470fd
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4470fd
mov edi, dword [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x447031
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
mov dword [ebp - 0x24], 0
mov eax, edi
lea ebx, [edi + 0xc]
mov ecx, 0x24
cmove eax, ecx
mov dword [ebp - 0x30], eax
nop word [eax + eax]
mov eax, dword [ebx]
test eax, eax
je 0x447067
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x447067
mov dword [ebx], 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
mov dword [ebp - 0x34], eax
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push edi
mov dword [ebp - 0x2c], edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 0xf
push 0x10
push edi
mov esi, eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push esi
mov dword [ebx], eax
call dword [sym.imp.GDI32.dll_SelectObject]
movaps xmm0, xmmword [0x550140]
mov edi, eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x24]
movups xmmword [ebp - 0x20], xmm0
push ecx
mov ecx, esp
mov dword [ecx], esi
mov ecx, dword [ebp - 0x30]
call fcn.00504ea0
push edi
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, dword [sym.imp.GDI32.dll_DeleteDC]
test esi, esi
je 0x4470d7
push esi
call edi
xor ecx, ecx
test eax, eax
cmovne esi, ecx
push dword [ebp - 0x2c]
push dword [ebp - 0x34]
call dword [sym.imp.USER32.dll_ReleaseDC]
test esi, esi
je 0x4470ea
push esi
call edi
mov eax, dword [ebp - 0x24]
add ebx, 4
inc eax
mov dword [ebp - 0x24], eax
cmp eax, 1
jle 0x447050
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005193a0
mov esp, ebp
pop ebp
ret