Function at 0x40a910
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a2b3
mov eax, dword fs:[0]
push eax
sub esp, 0x478
mov eax, dword [0x567680]
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 eax, dword [0x5671f0]
mov ecx, 0x5671f0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x428], eax
push ecx
mov ecx, esp
push str.0c292f24236c232a2a4146
mov dword [ebp - 4], 0
call fcn.00401c30
lea eax, [ebp - 0x424]
push eax
call fcn.004126a0
add esp, 8
mov eax, dword [eax]
lea ecx, [ebp - 0x428]
push dword [eax - 0xc]
mov byte [ebp - 4], 1
push eax
call fcn.00402f20
mov edx, dword [ebp - 0x424]
add edx, 0xfffffff0
or edi, 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40a9b2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [0x568ad4]
mov eax, esi
imul eax, esi
imul eax, esi
cdq
mov ecx, 0x13
idiv ecx
cmp edx, 0xe
jne 0x40aa08
mov eax, 0x51eb851f
imul esi
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul ecx, ecx, 0x64
sub esi, ecx
xor ecx, ecx
lea eax, [esi + 0x2f4]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004e8060
push eax
call fcn.004e8ec3
add esp, 8
push ecx
mov ecx, esp
push str.050a6c0203186c0914051f186c697d6c0b0318036c0902084146
call fcn.00401c30
lea eax, [ebp - 0x424]
push eax
call fcn.004126a0
add esp, 8
mov eax, dword [eax]
lea ecx, [ebp - 0x428]
push dword [eax - 0xc]
mov byte [ebp - 4], 2
push eax
call fcn.00402f20
mov edx, dword [ebp - 0x424]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40aa5c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov ecx, esp
push str.1f09186c632d6c25717c4146
call fcn.00401c30
lea eax, [ebp - 0x424]
push eax
call fcn.004126a0
add esp, 8
mov eax, dword [eax]
lea ecx, [ebp - 0x428]
push dword [eax - 0xc]
mov byte [ebp - 4], 3
push eax
call fcn.00402f20
mov edx, dword [ebp - 0x424]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40aab0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov ecx, esp
push str.761e091c090d184146
call fcn.00401c30
lea eax, [ebp - 0x424]
push eax
call fcn.004126a0
add esp, 8
mov eax, dword [eax]
lea ecx, [ebp - 0x428]
push dword [eax - 0xc]
mov byte [ebp - 4], 4
push eax
call fcn.00402f20
mov edx, dword [ebp - 0x424]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40ab04
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov ecx, esp
push str.050a6c69256971717a7c6c0b0318036c0902084146
call fcn.00401c30
lea eax, [ebp - 0x424]
push eax
call fcn.004126a0
add esp, 8
mov eax, dword [eax]
lea ecx, [ebp - 0x428]
push dword [eax - 0xc]
mov byte [ebp - 4], 5
push eax
call fcn.00402f20
mov edx, dword [ebp - 0x424]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40ab58
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov ecx, esp
push str.0809006c697d4146
call fcn.00401c30
lea eax, [ebp - 0x424]
push eax
call fcn.004126a0
add esp, 8
mov eax, dword [eax]
lea ecx, [ebp - 0x428]
push dword [eax - 0xc]
mov byte [ebp - 4], 6
push eax
call fcn.00402f20
mov edx, dword [ebp - 0x424]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40abac
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov ecx, esp
push str.050a6c0203186c0914051f186c697d6c0b0318036c0902084146
call fcn.00401c30
lea eax, [ebp - 0x424]
push eax
call fcn.004126a0
add esp, 8
mov eax, dword [eax]
lea ecx, [ebp - 0x428]
push dword [eax - 0xc]
mov byte [ebp - 4], 7
push eax
call fcn.00402f20
mov edx, dword [ebp - 0x424]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40ac00
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov ecx, esp
push str.3c25222b6c7d627d627d627d6c61226c7d6c613b6c7d7c7c7c6c726c2239204146
call fcn.00401c30
lea eax, [ebp - 0x424]
push eax
call fcn.004126a0
add esp, 8
mov eax, dword [eax]
lea ecx, [ebp - 0x428]
push dword [eax - 0xc]
mov byte [ebp - 4], 8
push eax
call fcn.00402f20
mov edx, dword [ebp - 0x424]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40ac54
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov ecx, esp
push str.1f09186c632d6c2571692569677d4146
call fcn.00401c30
lea eax, [ebp - 0x424]
push eax
call fcn.004126a0
add esp, 8
mov eax, dword [eax]
lea ecx, [ebp - 0x428]
push dword [eax - 0xc]
mov byte [ebp - 4], 9
push eax
call fcn.00402f20
mov edx, dword [ebp - 0x424]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40aca8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov ecx, esp
push str.0b0318036c1e091c090d184146
call fcn.00401c30
lea eax, [ebp - 0x424]
push eax
call fcn.004126a0
add esp, 8
mov eax, dword [eax]
lea ecx, [ebp - 0x428]
push dword [eax - 0xc]
mov byte [ebp - 4], 0xa
push eax
call fcn.00402f20
mov edx, dword [ebp - 0x424]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40acfc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov ecx, esp
push str.760902084146
call fcn.00401c30
lea eax, [ebp - 0x424]
push eax
call fcn.004126a0
add esp, 8
mov eax, dword [eax]
lea ecx, [ebp - 0x428]
push dword [eax - 0xc]
mov byte [ebp - 4], 0xb
push eax
call fcn.00402f20
mov edx, dword [ebp - 0x424]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40ad50
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov ecx, esp
push str.0809006c697c4146
call fcn.00401c30
lea eax, [ebp - 0x424]
push eax
call fcn.004126a0
add esp, 8
mov eax, dword [eax]
lea ecx, [ebp - 0x428]
push dword [eax - 0xc]
mov byte [ebp - 4], 0xc
push eax
call fcn.00402f20
mov edx, dword [ebp - 0x424]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40ada4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.004eaaf0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x440]
call fcn.00401c30
mov eax, dword [0x5671f0]
mov ecx, 0x5671f0
mov byte [ebp - 4], 0xd
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x424], esi
mov eax, dword [esi - 8]
mov ebx, 1
mov ecx, ebx
sub ecx, dword [esi - 4]
dec eax
or eax, ecx
mov byte [ebp - 4], 0xe
jge 0x40ae2a
push ebx
lea ecx, [ebp - 0x424]
call fcn.004084d0
mov esi, dword [ebp - 0x424]
mov eax, 0x22
mov word [esi], ax
cmp dword [esi - 8], ebx
jge 0x40ae41
push 0x80070057
call fcn.00403100
xor eax, eax
mov dword [esi - 0xc], ebx
mov word [esi + 2], ax
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x444]
push eax
mov byte [ebp - 4], 0xf
call fcn.00402aa0
push 0x22
push eax
lea eax, [ebp - 0x438]
push eax
mov byte [ebp - 4], 0x10
call fcn.00402c40
add esp, 0x18
mov edx, dword [ebp - 0x444]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x12
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40aea1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 0x13
lea eax, [esi + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40aebe
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x5671f0]
mov ecx, 0x5671f0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x424], eax
mov byte [ebp - 4], 0x14
call fcn.004e9fd1
push eax
lea eax, [ebp - 0x424]
push 0x517088
push eax
call fcn.00405320
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.004eaaf0
add esp, 0x18
lea eax, [ebp - 0x420]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [0x5671f0]
mov ecx, 0x5671f0
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x430], esi
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x42c]
push eax
mov byte [ebp - 4], 0x15
call fcn.00402b60
lea ecx, [ebp - 0x424]
push ecx
push eax
lea eax, [ebp - 0x448]
push eax
mov byte [ebp - 4], 0x16
call fcn.00402aa0
push str..bat
push eax
lea eax, [ebp - 0x434]
push eax
mov byte [ebp - 4], 0x17
call fcn.00402b60
add esp, 0x24
mov edx, dword [ebp - 0x448]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x19
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40afa7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x42c]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x1a
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40afca
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [esi - 0x10]
mov byte [ebp - 4], 0x1b
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40afe7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x5671f0]
mov ecx, 0x5671f0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x43c], eax
mov esi, dword [ebp - 0x428]
mov byte [ebp - 4], 0x1c
test esi, esi
je 0x40b03f
test esi, 0xffff0000
jne 0x40b03f
movzx eax, si
push 0
push eax
mov dword [ebp - 0x430], eax
call fcn.00403090
add esp, 8
test eax, eax
je 0x40b04b
push dword [ebp - 0x430]
lea ecx, [ebp - 0x43c]
push eax
call fcn.00408220
jmp 0x40b04b
push esi
lea ecx, [ebp - 0x43c]
call fcn.00402740
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x434]
push eax
mov byte [ebp - 4], 0x1d
call fcn.00411fc0
push 0x3c
lea eax, [ebp - 0x484]
push 0
push eax
call fcn.004eaaf0
add esp, 0x10
mov ecx, esp
push str.233c2922
mov dword [ebp - 0x484], 0x3c
call fcn.00401c30
lea eax, [ebp - 0x430]
push eax
call fcn.004126a0
mov edx, dword [ebp - 0x430]
mov eax, dword [eax]
add edx, 0xfffffff0
mov dword [ebp - 0x478], eax
add esp, 8
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40b0c1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x434]
mov edx, ebx
sub edx, dword [eax - 4]
mov ecx, dword [eax - 8]
or ecx, edx
jge 0x40b0e6
push 0
lea ecx, [ebp - 0x434]
call fcn.004084d0
mov eax, dword [ebp - 0x434]
mov dword [ebp - 0x474], eax
mov eax, dword [ebp - 0x438]
mov dword [ebp - 0x468], 0
mov dword [ebp - 0x480], 0x440
sub ebx, dword [eax - 4]
mov ecx, dword [eax - 8]
or ecx, ebx
jge 0x40b123
push 0
lea ecx, [ebp - 0x438]
call fcn.004084d0
mov eax, dword [ebp - 0x438]
mov dword [ebp - 0x470], eax
mov eax, dword [0x568b4c]
test eax, eax
jne 0x40b15d
push str.Shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x40b154
push str.ShellExecuteExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x568b4c], eax
jmp 0x40b159
mov eax, dword [0x568b4c]
test eax, eax
je 0x40b166
lea ecx, [ebp - 0x484]
push ecx
call eax
mov edx, dword [ebp - 0x43c]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x1b
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40b189
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x434]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x14
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40b1ac
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x424]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x13
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40b1cf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x438]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xd
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40b1f2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x440]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40b215
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x40b233
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
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.004e9514
mov esp, ebp
pop ebp
ret