Function at 0x44f7a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x5b00cc]
xor eax, esp
mov dword [esp + 0x220], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
add eax, 0xfffffc18
xor edi, edi
cmp eax, 0x2f
mov dword [esp + 0xc], ebx
ja case.0x44f7d6.1004
jmp dword [eax*4 + 0x44fc98]
mov dword [esp + 0xc], edi
call fcn.0041a360
test al, al
je 0x44f821
push 0x206
lea eax, [esp + 0x26]
push edi
push eax
mov word [esp + 0x2c], di
call fcn.0056b660
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x20]
lea edx, [esp + 0xc]
call fcn.004ab9d0
jmp 0x44f857
push 0x103
lea edx, [esp + 0x25]
push edi
push edx
mov byte [esp + 0x2c], bl
call fcn.0056b660
add esp, 0xc
lea eax, [esp + 0x20]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, eax
lea esi, [esp + 0x20]
lea eax, [esp + 0xc]
call fcn.004ab970
push 0x14
call fcn.005662c8
mov edi, eax
add esp, 4
test edi, edi
je 0x44f883
push 0
push 0
push 0
push ecx
mov esi, esp
lea eax, [esp + 0x1c]
call fcn.004abbd0
push edi
call fcn.0044dcc0
mov edi, eax
jmp 0x44f885
xor edi, edi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x44f892
call fcn.004ab850
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.00566120
mov esp, ebp
pop ebp
ret 4
mov esi, 0x14
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edi
mov byte [esp + 0x17], bl
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jge 0x44fa75
mov byte [esp + 0x13], 1
jmp 0x44fb2b
mov esi, 0x1a
jmp 0x44f8b0
mov esi, 7
jmp 0x44f8b0
mov esi, 0x23
jmp 0x44f8b0
mov esi, 0x25
jmp 0x44f8b0
mov esi, 0x10
jmp 0x44f8b0
mov esi, 5
jmp 0x44f8b0
mov esi, 2
jmp 0x44f8b0
mov esi, 0x19
jmp 0x44f8b0
mov esi, 6
jmp 0x44f8b0
mov esi, 0x1f
jmp 0x44f8b0
mov esi, 0x2e
jmp 0x44f8b0
mov esi, 0x21
jmp 0x44f8b0
mov esi, 0x22
jmp 0x44f8b0
mov esi, 0x20
jmp 0x44f8b0
mov esi, 0xd
jmp 0x44f8b0
mov esi, 0x27
jmp 0x44f8b0
mov esi, 0x26
jmp 0x44f8b0
mov esi, 0x2b
jmp 0x44f8b0
mov esi, 8
jmp 0x44f8b0
mov esi, 9
jmp 0x44f8b0
mov esi, 0x24
jmp 0x44f8b0
mov esi, 0x18
jmp 0x44f8b0
mov esi, 0x15
jmp 0x44f8b0
mov esi, 0x2d
jmp 0x44f8b0
mov esi, 0x13
jmp 0x44f8b0
mov esi, 0x1b
jmp 0x44f8b0
call fcn.0041a360
test al, al
je 0x44f9f0
lea ecx, [esp + 0x20]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, edi
je case.0x44f7d6.1004
lea ecx, [esp + 0x20]
lea edx, [esp + 0xc]
call fcn.004ab9d0
mov ebx, dword [esp + 0xc]
jmp case.0x44fb6f.1008
lea edx, [esp + 0x20]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je case.0x44f7d6.1004
lea eax, [esp + 0x20]
lea ebx, [esp + 0x14]
call fcn.00401ed0
lea edi, [esp + 0xc]
call fcn.004abdf0
mov esi, dword [esp + 0x14]
test esi, esi
je 0x44fbec
call fcn.004ab850
jmp 0x44fbec
push 0x18
call fcn.005662c8
add esp, 4
cmp eax, edi
je case.0x44f7d6.1004
mov dword [eax + 4], edi
mov dword [eax + 0xc], edi
mov byte [eax + 0x10], bl
mov byte [eax + 0x11], bl
mov byte [eax + 0x12], bl
mov dword [eax], 0x59cbd8
mov dword [eax + 0x14], edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.00566120
mov esp, ebp
pop ebp
ret 4
lea ecx, [esp + 0x18]
push ecx
push esi
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x44fa9c
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov byte [esp + 0x13], 1
jmp 0x44fb2b
call fcn.0041a360
test al, al
je 0x44fae2
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x44fb2b
lea eax, [esp + 0x20]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x44fac0
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x20]
lea edx, [esp + 0xc]
call fcn.004ab9d0
mov ebx, dword [esp + 0xc]
jmp 0x44fb2b
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x44fb2b
lea eax, [esp + 0x20]
lea ebx, [esp + 0x1c]
call fcn.00401ed0
lea edi, [esp + 0xc]
call fcn.004abdf0
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x44fb19
call fcn.004ab850
call fcn.005293c0
mov ebx, dword [esp + 0xc]
xor edi, edi
test ebx, ebx
je 0x44fb2b
mov dword [ebx + 0x10], eax
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x44fb4c
mov ecx, dword [esp + 0x18]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
push ecx
push eax
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp byte [esp + 0x13], 0
je case.0x44fb6f.1008
mov eax, dword [ebp + 8]
add eax, 0xfffffc11
cmp eax, 0x15
ja case.0x44fb6f.1008
movzx eax, byte [eax + 0x44fd64]
jmp dword [eax*4 + 0x44fd58]
call fcn.0041a360
test al, al
push 0x104
je 0x44fb91
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
jmp 0x44fbb7
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x44fbd9
call fcn.0041a360
test al, al
push 0x104
je 0x44fbce
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, edi
je case.0x44fb6f.1008
lea ecx, [esp + 0x20]
lea edx, [esp + 0xc]
call fcn.004ab9d0
mov ebx, dword [esp + 0xc]
jmp case.0x44fb6f.1008
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, edi
je case.0x44fb6f.1008
mov edi, eax
lea esi, [esp + 0x20]
lea eax, [esp + 0xc]
call fcn.004ab970
call fcn.005293c0
mov ebx, dword [esp + 0xc]
test ebx, ebx
je case.0x44f7d6.1004
mov dword [ebx + 0x10], eax
xor edi, edi
cmp ebx, edi
je case.0x44f7d6.1004
cmp dword [ebx + 0xc], edi
je 0x44fc77
push 0x14
call fcn.005662c8
mov edi, eax
add esp, 4
test edi, edi
je 0x44fc55
push 0
push 0
push 0
push ecx
mov esi, esp
lea eax, [esp + 0x1c]
call fcn.004abbd0
push edi
call fcn.0044dcc0
mov esi, ebx
mov edi, eax
call fcn.004ab850
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.00566120
mov esp, ebp
pop ebp
ret 4
mov esi, ebx
xor edi, edi
call fcn.004ab850
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.00566120
mov esp, ebp
pop ebp
ret 4
mov esi, ebx
call fcn.004ab850
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00566120
mov esp, ebp
pop ebp
ret 4