Function at 0x41ece0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d07d0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x52de08]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x52f3c4
mov dword [ebp - 0x30], 0x52f3c4
mov byte [ebp - 0x2c], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x2c], 1
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call fcn.004147c0
mov byte [ebp - 4], 1
mov edx, dword [0x52ddd4]
mov eax, dword [edx + 0xc]
mov ecx, 0x52ddd4
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x14]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
mov edi, 0x104
sub eax, edi
or eax, ecx
jge 0x41ed79
push edi
lea ecx, [ebp - 0x14]
call fcn.00406e80
mov edx, dword [ebp - 0x14]
cmp dword [edx - 8], edi
jge 0x41ed88
push 0x80070057
call fcn.00406170
mov dword [edx - 0xc], edi
mov eax, dword [ebp - 0x14]
push edi
xor ecx, ecx
push edx
mov word [eax + 0x208], cx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004ab44b
add esp, 8
test eax, eax
js 0x41ed7e
mov ecx, dword [ebp - 0x14]
cmp eax, dword [ecx - 8]
jg 0x41ed7e
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
lea eax, [ebp - 0x1c]
push eax
call fcn.0041eaa0
add esp, 4
mov byte [ebp - 4], 4
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x14]
call fcn.004104a0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ee09
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x52ddd4]
mov eax, dword [edx + 0xc]
mov ecx, 0x52ddd4
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x24]
push ecx
mov ecx, esi
call fcn.0041ab30
mov edi, eax
mov bl, 8
mov byte [ebp - 4], bl
lea edx, [ebp - 0x1c]
push edx
call fcn.0041e8a0
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x20]
mov edx, dword [edi]
mov eax, dword [eax]
push ecx
mov ecx, dword [ebp - 0x14]
push edx
push ecx
push eax
lea edx, [ebp - 0x18]
push edx
call fcn.00412c60
add esp, 0x18
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ee7e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41eea1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x18]
call fcn.004126b0
mov ecx, eax
call fcn.00412730
cmp byte [esi + 0x7ac], 0
je 0x41eecf
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x14]
push edx
mov ecx, esi
call fcn.0041b740
mov edi, eax
mov dword [ebp - 0x1c], edi
jmp 0x41eee3
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
push ecx
mov ecx, esi
call fcn.0041b890
mov dword [ebp - 0x1c], eax
mov edi, eax
cmp edi, 0xffffffff
jne 0x41ef92
mov esi, dword [esi + 8]
mov edx, dword [0x52f4f8]
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
push esi
mov dword [ebp - 0x24], edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x24]
push eax
push edi
push ebx
call fcn.0047c050
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ef33
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ef56
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ef79
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
push 0x52f3c4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
jmp 0x41f161
lea ecx, [esi + 0xe4]
or ebx, 0xffffffff
call fcn.0040b9a0
test al, al
jne 0x41efdb
fld qword [0x4e7e78]
lea ecx, [ebp - 0x28]
push ecx
fstp qword [ebp - 0x28]
lea ecx, [esi + 0x638]
call fcn.0040bbe0
mov eax, dword [esi + 8]
mov ecx, dword [0x52f508]
push eax
call fcn.00483180
push 0xdbba0
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
jmp 0x41f04d
xor eax, eax
jmp 0x41efe3
mov eax, dword [ebp - 0x24]
cmp eax, 0x384
jge 0x41f04d
push 0x3e8
inc eax
push edi
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [esi + 0x638]
mov ebx, eax
call fcn.0041b450
fcomp qword [0x4e8368]
fnstsw ax
test ah, 5
jp 0x41f046
lea ecx, [esi + 0x638]
call fcn.0041b450
fadd qword [0x4e8360]
lea edx, [ebp - 0x38]
push edx
lea ecx, [esi + 0x638]
fstp qword [ebp - 0x38]
call fcn.0040bbe0
mov eax, dword [esi + 8]
mov ecx, dword [0x52f508]
push eax
call fcn.00483180
mov edi, dword [ebp - 0x1c]
test ebx, ebx
jne 0x41efe0
mov byte [ebp - 0xd], 0
test ebx, ebx
je 0x41f0a4
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.0041ab30
mov byte [ebp - 4], 0xf
mov esi, dword [esi + 8]
mov ecx, dword [ebp - 0x18]
mov eax, dword [eax]
push esi
push 0x2df
push ecx
mov ecx, dword [0x52f4f8]
push eax
call fcn.0047c050
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41f0dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x41f0dc
lea ecx, [ebp - 0x1c]
push ecx
push edi
mov byte [ebp - 0xd], 1
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
lea edx, [ebp - 0x1c]
push edx
lea ecx, [esi + 0x444]
call fcn.0040bb20
lea eax, [ebp - 0xe]
push eax
lea ecx, [esi + 0x760]
mov byte [ebp - 0xe], 1
call fcn.0040ba60
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f106
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f129
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f14c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
push 0x52f3c4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, byte [ebp - 0xd]
mov byte [ebp - 0x2c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret