Function at 0x461165
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x448
mov eax, dword [0x500144]
xor eax, ebp
mov dword [ebp - 8], eax
mov edx, dword [ebp + 8]
xor eax, eax
push ebx
push esi
push edi
push 9
mov ebx, ecx
lea edi, [ebp - 0x440]
pop ecx
rep stosd dword es:[edi], eax
push 0x104
lea eax, [ebp - 0x214]
push eax
push edx
call fcn.0046192f
mov dword [ebp - 0x444], eax
mov ecx, dword [section..data]
mov esi, section..data
mov edi, 0x40ed20
cmp ecx, esi
je 0x4611e9
test byte [ecx + 0x1c], 1
je 0x4611e9
cmp byte [ecx + 0x19], 5
jb 0x4611e9
call fcn.0042386b
lea ecx, [ebp - 0x214]
mov edx, edi
push ecx
push eax
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x1c
pop ecx
call fcn.004330da
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test eax, eax
je 0x46146c
xor ecx, ecx
cmp word [eax], cx
je 0x46146c
push 0xffffffffffffffff
push 0x40db10
push 0xffffffffffffffff
push eax
push 1
push 0x7f
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x46146c
push 0x800
push 0
push 0x407104
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x46126b
push 0x40ecec
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x46126b
lea eax, [ebp - 0x41c]
mov ecx, edi
push eax
push 0x104
call dword [0x5035f0]
call edi
push 2
pop edi
jmp 0x461280
lea eax, [ebp - 0x41c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor edi, edi
inc edi
test eax, eax
je 0x461428
cmp eax, 0x104
jae 0x461428
push 0
push ecx
lea eax, [ebp - 0x41c]
mov ecx, ebx
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.004614b9
test eax, eax
jne 0x4612f6
mov eax, dword [section..data]
cmp eax, section..data
je 0x46145f
test byte [eax + 0x1c], 1
je 0x46145f
cmp byte [eax + 0x19], 2
jb 0x46145f
call fcn.0042386b
push eax
mov eax, dword [section..data]
mov edx, 0x40ed20
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x1f
pop ecx
call fcn.004238e7
jmp 0x46145f
lea eax, [ebp - 0x440]
push eax
push 0
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x461362
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x46145f
test byte [ecx + 0x1c], 8
je 0x46145f
cmp byte [ecx + 0x19], 2
jb 0x46145f
call fcn.0042386b
push edi
push eax
mov eax, dword [section..data]
mov edx, 0x40ed20
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x20
pop ecx
call fcn.00421fda
jmp 0x46145f
cmp dword [ebp - 0x424], 0
jne 0x4613e4
cmp dword [ebp - 0x420], 0x10000
ja 0x4613e4
lea eax, [ebp - 0x214]
mov edx, 0x104
push eax
lea ecx, [ebx + 0x1060]
call fcn.0041f6cc
mov edi, eax
test edi, edi
jns 0x46145f
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x46145f
test byte [ecx + 0x1c], 8
je 0x46145f
cmp byte [ecx + 0x19], 2
jb 0x46145f
call fcn.0042386b
push edi
push 0x409728
push eax
mov eax, dword [section..data]
mov edx, 0x40ed20
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x22
pop ecx
call fcn.0042371b
jmp 0x46145f
mov eax, dword [section..data]
cmp eax, section..data
je 0x46145f
test byte [eax + 0x1c], 1
je 0x46145f
cmp byte [eax + 0x19], 2
jb 0x46145f
call fcn.0042386b
push dword [ebp - 0x420]
mov edx, 0x40ed20
push dword [ebp - 0x424]
push eax
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x21
pop ecx
call fcn.00429397
jmp 0x46145f
mov eax, dword [section..data]
cmp eax, section..data
je 0x46145f
test byte [eax + 0x1c], 1
je 0x46145f
cmp byte [eax + 0x19], 2
jb 0x46145f
call fcn.0042386b
push edi
push eax
mov eax, dword [section..data]
mov edx, 0x40ed20
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x1e
pop ecx
call fcn.00421fda
test esi, esi
je 0x46149c
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x46149c
mov eax, dword [section..data]
cmp eax, esi
je 0x46149c
test byte [eax + 0x1c], 1
je 0x46149c
cmp byte [eax + 0x19], 2
jb 0x46149c
call fcn.0042386b
push eax
mov eax, dword [section..data]
mov edx, edi
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x1d
pop ecx
call fcn.004238e7
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x444]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004fb5e0
leave
ret 4