Function at 0x45bd30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov eax, 0x283c
call fcn.004a0f30
push ecx
push edi
lea edi, [esp + 8]
mov eax, 0xcccccccc
mov ecx, 0xa0f
rep stosd dword es:[edi], eax
pop edi
pop ecx
mov dword [ebp - 0x2844], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x2824], 0xffffffff
mov edx, dword [ebp + 8]
sub edx, 0x3e8
cmp edx, 0x21
ja case.default.0x45bd7c
jmp dword [edx*4 + 0x4a5c24]
mov dword [ebp - 0x2824], 0xfffffff5
jmp 0x45bf6d
mov dword [ebp - 0x2824], 0xfffffff6
jmp 0x45bf6d
mov dword [ebp - 0x2824], 0x14
jmp 0x45bf6d
mov dword [ebp - 0x2824], 0x1a
jmp 0x45bf6d
mov dword [ebp - 0x2824], 0xffffffff
jmp 0x45bf6d
mov dword [ebp - 0x2824], 7
jmp 0x45bf6d
mov dword [ebp - 0x2824], 0x1a
jmp 0x45bf6d
mov dword [ebp - 0x2824], 0x25
jmp 0x45bf6d
mov dword [ebp - 0x2824], 0xffffffff
jmp 0x45bf6d
mov dword [ebp - 0x2824], 0x10
jmp 0x45bf6d
mov dword [ebp - 0x2824], 5
jmp 0x45bf6d
mov dword [ebp - 0x2824], 2
jmp 0x45bf6d
mov dword [ebp - 0x2824], 0x25
jmp 0x45bf6d
mov dword [ebp - 0x2824], 0x23
jmp 0x45bf6d
mov dword [ebp - 0x2824], 0x19
jmp 0x45bf6d
mov dword [ebp - 0x2824], 6
jmp 0x45bf6d
mov dword [ebp - 0x2824], 0x1f
jmp 0x45bf6d
mov dword [ebp - 0x2824], 0x2e
jmp 0x45bf6d
mov dword [ebp - 0x2824], 0x21
jmp 0x45bf6d
mov dword [ebp - 0x2824], 0x22
jmp 0x45bf6d
mov dword [ebp - 0x2824], 0x20
jmp 0x45bf6d
mov dword [ebp - 0x2824], 0xd
jmp 0x45bf6d
mov dword [ebp - 0x2824], 0x27
jmp 0x45bf6d
mov dword [ebp - 0x2824], 0x26
jmp 0x45bf6d
mov dword [ebp - 0x2824], 0x2b
jmp 0x45bf6d
mov dword [ebp - 0x2824], 8
jmp 0x45bf6d
mov dword [ebp - 0x2824], 9
jmp 0x45bf6d
mov dword [ebp - 0x2824], 0x24
jmp 0x45bf6d
mov dword [ebp - 0x2824], 0x24
jmp 0x45bf6d
mov dword [ebp - 0x2824], 0x18
jmp 0x45bf6d
mov dword [ebp - 0x2824], 0x15
jmp 0x45bf6d
mov dword [ebp - 0x2824], 0x2d
jmp 0x45bf6d
mov dword [ebp - 0x2824], 0x13
jmp 0x45bf6d
mov dword [ebp - 0x2824], 0x1b
jmp 0x45bf6d
mov dword [ebp - 0x2824], 0xffffffff
cmp dword [ebp - 0x2824], 0xfffffff6
jne 0x45c060
call fcn.00490470
cmp al, 0
je 0x45bfbe
lea eax, [ebp - 0x80c]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x2828], eax
cmp dword [ebp - 0x2828], 0
je 0x45bfb9
push dword [ebp - 0x2828]
lea eax, [ebp - 0x80c]
push eax
lea ecx, [ebp - 0xc]
call fcn.00401e40
jmp case.0x45c221.1008
lea eax, [ebp - 0xc0c]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov dword [ebp - 0x282c], eax
cmp dword [ebp - 0x282c], 0
je 0x45c05b
mov dword [ebp - 0x2818], 0
lea edx, [ebp - 0xc0c]
lea eax, [ebp - 0xc0c]
push eax
call fcn.00403a30
pop ecx
push eax
lea eax, [ebp - 0xc0c]
push eax
lea ecx, [ebp - 0x2818]
call fcn.00401db0
cmp dword [ebp - 0x2818], 0
je 0x45c027
mov ebx, dword [ebp - 0x2818]
mov edx, dword [0x4a8218]
mov dword [ebx + 0x10], edx
lea eax, [ebp - 0x2818]
push eax
lea ecx, [ebp - 0xc]
call fcn.00402570
cmp dword [ebp - 0x2818], 0
je 0x45c04a
mov ecx, dword [ebp - 0x2818]
call fcn.00401b80
call fcn.0047feb0
cmp dword [ebp - 0xc], 0
je 0x45c05b
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x10], eax
jmp case.0x45c221.1008
cmp dword [ebp - 0x2824], 0xffffffff
jne 0x45c087
mov ebx, 0
cmp dword [ebp - 0xc], 0
je 0x45c07c
mov ecx, dword [ebp - 0xc]
call fcn.00401b80
mov eax, ebx
lea esp, [ebp - 8]
pop esi
pop ebx
pop ebp
ret 4
cmp dword [ebp - 0x2824], 0xfffffff5
jne 0x45c0c1
push 0x18
call fcn.004352a0
pop ecx
cmp eax, 0
je 0x45c0a6
mov ecx, eax
call fcn.00464530
mov eax, eax
mov ebx, eax
cmp dword [ebp - 0xc], 0
je 0x45c0b6
mov ecx, dword [ebp - 0xc]
call fcn.00401b80
mov eax, ebx
lea esp, [ebp - 8]
pop esi
pop ebx
pop ebp
ret 4
mov dword [ebp - 0xc10], 0
mov dword [ebp - 0xc14], 0
mov byte [ebp - 0x282d], 0
lea eax, [ebp - 0xc14]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
cmp eax, 0
jge 0x45c0f5
mov byte [ebp - 0x282d], 1
cmp byte [ebp - 0x282d], 0
jne 0x45c130
lea eax, [ebp - 0xc10]
push eax
push dword [ebp - 0x2824]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp eax, 0
je 0x45c130
push dword [ebp - 0xc14]
mov edx, dword [ebp - 0xc14]
mov esi, dword [edx]
call dword [esi + 8]
mov byte [ebp - 0x282d], 1
cmp byte [ebp - 0x282d], 0
jne 0x45c1d1
lea eax, [ebp - 0x1014]
push eax
push dword [ebp - 0xc10]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
cmp eax, 0
je 0x45c1d1
mov dword [ebp - 0x281c], 0
lea edx, [ebp - 0x1014]
lea eax, [ebp - 0x1014]
push eax
call fcn.00403a30
pop ecx
push eax
lea eax, [ebp - 0x1014]
push eax
lea ecx, [ebp - 0x281c]
call fcn.00401db0
cmp dword [ebp - 0x281c], 0
je 0x45c19d
mov ebx, dword [ebp - 0x281c]
mov edx, dword [0x4a8218]
mov dword [ebx + 0x10], edx
lea eax, [ebp - 0x281c]
push eax
lea ecx, [ebp - 0xc]
call fcn.00402570
cmp dword [ebp - 0x281c], 0
je 0x45c1c0
mov ecx, dword [ebp - 0x281c]
call fcn.00401b80
call fcn.0047feb0
cmp dword [ebp - 0xc], 0
je 0x45c1d1
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x10], eax
cmp dword [ebp - 0xc14], 0
je 0x45c202
push dword [ebp - 0xc10]
push dword [ebp - 0xc14]
mov edx, dword [ebp - 0xc14]
mov esi, dword [edx]
call dword [esi + 0x14]
push dword [ebp - 0xc14]
mov edx, dword [ebp - 0xc14]
mov esi, dword [edx]
call dword [esi + 8]
cmp byte [ebp - 0x282d], 0
je case.0x45c221.1008
mov edx, dword [ebp + 8]
sub edx, 0x3ef
cmp edx, 0x15
ja case.0x45c221.1008
jmp dword [edx*4 + 0x4a5bcc]
call fcn.00490470
cmp al, 0
je 0x45c26c
push 0x400
lea eax, [ebp - 0x1814]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov dword [ebp - 0x2834], eax
cmp dword [ebp - 0x2834], 0
je 0x45c267
push dword [ebp - 0x2834]
lea eax, [ebp - 0x1814]
push eax
lea ecx, [ebp - 0xc]
call fcn.00401e40
jmp case.0x45c221.1008
push 0x400
lea eax, [ebp - 0x1c14]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov dword [ebp - 0x2838], eax
cmp dword [ebp - 0x2838], 0
je 0x45c2b3
push dword [ebp - 0x2838]
lea eax, [ebp - 0x1c14]
push eax
lea ecx, [ebp - 0xc]
call fcn.00401db0
call fcn.0047feb0
cmp dword [ebp - 0xc], 0
je 0x45c2b3
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x10], eax
jmp case.0x45c221.1008
call fcn.00490470
cmp al, 0
je 0x45c2f9
push 0x400
lea eax, [ebp - 0x2414]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0x283c], eax
cmp dword [ebp - 0x283c], 0
je 0x45c2f7
push dword [ebp - 0x283c]
lea eax, [ebp - 0x2414]
push eax
lea ecx, [ebp - 0xc]
call fcn.00401e40
jmp case.0x45c221.1008
push 0x400
lea eax, [ebp - 0x2814]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [ebp - 0x2840], eax
cmp dword [ebp - 0x2840], 0
je case.0x45c221.1008
push dword [ebp - 0x2840]
lea eax, [ebp - 0x2814]
push eax
lea ecx, [ebp - 0xc]
call fcn.00401db0
call fcn.0047feb0
cmp dword [ebp - 0xc], 0
je case.0x45c221.1008
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x10], eax
cmp dword [ebp - 0xc], 0
je 0x45c34e
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0xc]
jmp 0x45c353
mov eax, 0
cmp eax, 0
je 0x45c3c2
mov bl, 0
push 0x14
call fcn.004352a0
pop ecx
mov esi, eax
cmp esi, 0
je 0x45c390
lea eax, [ebp - 0x2820]
push eax
lea ecx, [ebp - 0xc]
call fcn.00402030
mov bl, 1
lea eax, [ebp - 0x2820]
push 0
push 0
push 0
push eax
mov ecx, esi
call fcn.00459ba0
mov esi, eax
cmp bl, 0
je 0x45c3a9
cmp dword [ebp - 0x2820], 0
je 0x45c3a9
mov ecx, dword [ebp - 0x2820]
call fcn.00401b80
cmp dword [ebp - 0xc], 0
je 0x45c3b7
mov ecx, dword [ebp - 0xc]
call fcn.00401b80
mov eax, esi
lea esp, [ebp - 8]
pop esi
pop ebx
pop ebp
ret 4
mov ebx, 0
cmp dword [ebp - 0xc], 0
je 0x45c3d5
mov ecx, dword [ebp - 0xc]
call fcn.00401b80
mov eax, ebx
lea esp, [ebp - 8]
pop esi
pop ebx
pop ebp
ret 4