Function at 0x440dd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53b5d8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x583384]
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 0x440fc1
mov byte [ebp - 0x25], 0
call fcn.00406110
mov ecx, eax
test ecx, ecx
jne 0x440e23
push 0x80004005
call fcn.004063a0
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 0x440e59
push 0x104
lea ecx, [ebp - 0x24]
call fcn.00406dd0
mov esi, dword [ebp - 0x24]
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x440eb9
push dword [esi - 8]
push esi
call fcn.00526cb2
add esp, 8
test eax, eax
js 0x440f58
cmp eax, dword [esi - 8]
jg 0x440f58
mov dword [esi - 0xc], eax
mov byte [eax + esi], 0
mov ecx, dword [esi - 0xc]
lea eax, [ecx - 1]
test eax, eax
js 0x440f58
cmp eax, ecx
jg 0x440f58
mov al, byte [eax + esi]
cmp al, 0x5c
je 0x440eb9
push 1
push 0x547a38
lea ecx, [ebp - 0x24]
call fcn.004241f0
push 0xb
push str.shell32.dll
lea ecx, [ebp - 0x24]
call fcn.004241f0
mov esi, dword [ebp - 0x24]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x440eef
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x25], 1
test eax, eax
je 0x440fa2
xor ebx, ebx
mov byte [ebp - 0x26], 1
add edi, 0xc
mov eax, dword [edi]
test eax, eax
je 0x440f0f
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x440f0f
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 0x440f44
cmp ecx, eax
je 0x440f44
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 0x2c]
mov dword [edi], eax
test eax, eax
je 0x440f62
inc ebx
add edi, 4
cmp ebx, 1
jle 0x440ef8
mov bl, byte [ebp - 0x26]
jmp 0x440f64
push 0x80070057
call fcn.004063a0
xor bl, bl
cmp byte [ebp - 0x25], 0
je 0x440f73
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test bl, bl
je 0x440f9f
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x44108d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x44108d
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 0x440fc1
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 0x440ff7
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x440ff7
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 [0x549680]
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.004468f0
push edi
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, dword [sym.imp.GDI32.dll_DeleteDC]
test esi, esi
je 0x441067
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 0x44107a
push esi
call edi
mov eax, dword [ebp - 0x24]
add ebx, 4
inc eax
mov dword [ebp - 0x24], eax
cmp eax, 1
jle 0x440fe0
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.00513512
mov esp, ebp
pop ebp
ret