Function at 0x403c40
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x45de4b
mov eax, dword fs:[0]
push eax
sub esp, 0x810
mov eax, dword [0x484904]
xor eax, esp
mov dword [esp + 0x80c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x484904]
xor eax, esp
push eax
lea eax, [esp + 0x824]
mov dword fs:[0], eax
mov edi, dword [esp + 0x834]
xor esi, esi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x14], esi
mov ebx, 1
mov dword [esp + 0x82c], ebx
call fcn.0042ef98
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x403cb2
push 0x80004005
call fcn.004010f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x20], ebp
mov ecx, dword [esp + 0x83c]
push ecx
lea edx, [esp + 0x54]
push 0x1f4
push edx
mov byte [esp + 0x838], 2
call fcn.00444415
add esp, 0xc
cmp byte [esp + 0x50], 0x5b
je 0x403d17
lea eax, [esp + 0x50]
push eax
mov ecx, edi
call fcn.0041f4a0
lea eax, [ebp - 0x10]
mov dword [esp + 0x14], ebx
mov byte [esp + 0x82c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4040ec
call fcn.00402e20
mov al, 0x5d
cmp byte [esp + 0x50], al
je 0x403d2c
add esi, ebx
cmp byte [esp + esi + 0x50], al
jne 0x403d24
lea ecx, [esi + 1]
push ecx
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x24c]
push eax
call fcn.00444850
lea ecx, [esp + esi + 0x5d]
push ecx
lea edx, [esp + 0x448]
push 0x1f4
push edx
mov byte [esp + esi + 0x25d], 0
call fcn.00444415
add esp, 0x18
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x34]
call fcn.0041d4e0
lea ecx, [esp + 0x24]
mov byte [esp + 0x82c], 3
call fcn.0041f550
sub esp, 0xc
lea eax, [esp + 0x250]
mov ecx, esp
mov dword [esp + 0x4c], esp
push eax
mov byte [esp + 0x83c], 4
call fcn.0041f4a0
call fcn.0041ea70
add esp, 0xc
cmp eax, 6
ja case.default.0x403db2
jmp dword [eax*4 + 0x404138]
push 0x118
lea ecx, [esp + 0x630]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.C:Program_Files
lea edx, [esp + 0x248]
push 0x1f4
push edx
call fcn.00444415
mov al, byte [esp + 0x638]
lea ecx, [esp + 0x250]
push ecx
lea edx, [esp + 0x60]
push 0x1f4
push edx
mov byte [esp + 0x25c], al
call fcn.00444415
lea eax, [esp + 0x450]
push eax
lea ecx, [esp + 0x6c]
push 0x1f4
push ecx
call fcn.0044447a
add esp, 0x24
jmp case.default.0x403db2
mov ecx, 0x491514
call fcn.0041f1c0
cmp eax, 3
je 0x403e51
mov edx, dword [0x491518]
push edx
lea eax, [esp + 0x54]
push 0x1f4
push eax
call fcn.00444415
add esp, 0xc
jmp 0x403e8d
mov ecx, 0x491514
call fcn.0041f1c0
sub eax, ebx
push eax
push ebx
lea ecx, [esp + 0x4c]
push ecx
mov ecx, 0x491514
call fcn.0041f6c0
mov eax, dword [eax + 4]
push eax
lea edx, [esp + 0x54]
push 0x1f4
push edx
call fcn.00444415
add esp, 0xc
lea ecx, [esp + 0x44]
call fcn.0041f1d0
lea eax, [esp + 0x438]
push eax
lea ecx, [esp + 0x54]
push 0x1f4
push ecx
call fcn.0044447a
lea eax, [esp + 0x5c]
add esp, 0xc
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403eb0
sub eax, edx
cmp eax, 3
jae case.default.0x403db2
push 0x4678e4
lea edx, [esp + 0x54]
push 0x1f4
push edx
call fcn.0044447a
add esp, 0xc
jmp case.default.0x403db2
lea eax, [esp + 0x438]
push eax
lea ecx, [esp + 0x54]
push 0x1f4
push ecx
call fcn.00444415
add esp, 0xc
jmp case.default.0x403db2
push 0x118
lea edx, [esp + 0x248]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x404072
push 0x118
lea ecx, [esp + 0x248]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esp + 0x244]
push edx
lea eax, [esp + 0x54]
push 0x1f4
push eax
call fcn.00444415
lea ecx, [esp + 0x444]
push ecx
push 0x1f4
lea edx, [esp + 0x64]
push edx
jmp 0x40409b
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl case.default.0x403db2
lea ecx, [esp + 0x18]
push ecx
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jge 0x403fbe
lea edx, [esp + 0x50]
push edx
mov ecx, edi
call fcn.0041f4a0
lea ecx, [esp + 0x24]
mov dword [esp + 0x14], ebx
mov byte [esp + 0x82c], 3
call fcn.0041f1d0
lea ecx, [esp + 0x30]
mov byte [esp + 0x82c], 2
call fcn.0041d500
lea ecx, [esp + 0x20]
call fcn.004018d0
jmp 0x4040f8
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x244]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
jne 0x403ff9
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
push ecx
push eax
call edx
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x50]
push eax
jmp 0x403f83
lea ecx, [esp + 0x244]
push ecx
lea edx, [esp + 0x54]
push 0x1f4
push edx
call fcn.00444415
lea eax, [esp + 0x444]
push eax
push 0x1f4
lea ecx, [esp + 0x64]
push ecx
jmp 0x40409b
lea edx, [esp + 0x244]
push edx
push 0x118
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x244]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404041
sub eax, edx
cmp byte [esp + eax + 0x243], 0x5c
jne 0x404072
lea eax, [esp + 0x244]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404060
sub eax, edx
mov byte [esp + eax + 0x243], cl
lea eax, [esp + 0x244]
push eax
lea ecx, [esp + 0x54]
push 0x1f4
push ecx
call fcn.00444415
lea edx, [esp + 0x444]
push edx
push 0x1f4
lea eax, [esp + 0x64]
push eax
call fcn.0044447a
add esp, 0x18
lea ecx, [esp + 0x50]
push ecx
mov ecx, edi
call fcn.0041f4a0
lea ecx, [esp + 0x24]
mov dword [esp + 0x14], ebx
mov byte [esp + 0x82c], 3
call fcn.0041f1d0
lea ecx, [esp + 0x30]
mov byte [esp + 0x82c], 2
call fcn.0041d500
lea eax, [ebp - 0x10]
or ecx, 0xffffffff
lea edx, [eax + 0xc]
mov byte [esp + 0x82c], bl
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4040f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x838]
mov byte [esp + 0x82c], 0
call fcn.0041f1d0
mov eax, edi
mov ecx, dword [esp + 0x824]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x80c]
xor ecx, esp
call fcn.00443aa9
add esp, 0x81c
ret