Function at 0x41a950
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x519840
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x587978]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x588ecc
mov dword [ebp - 0x30], 0x588ecc
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.00412a50
mov byte [ebp - 4], 1
mov edx, dword [0x587944]
mov eax, dword [edx + 0xc]
mov ecx, 0x587944
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 0x41a9e9
push edi
lea ecx, [ebp - 0x14]
call fcn.00406d20
mov edx, dword [ebp - 0x14]
cmp dword [edx - 8], edi
jge 0x41a9f8
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.004ebabf
add esp, 8
test eax, eax
js 0x41a9ee
mov ecx, dword [ebp - 0x14]
cmp eax, dword [ecx - 8]
jg 0x41a9ee
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.0041a710
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.0040f910
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 0x41aa79
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x587944]
mov eax, dword [edx + 0xc]
mov ecx, 0x587944
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.004167a0
mov edi, eax
mov bl, 8
mov byte [ebp - 4], bl
lea edx, [ebp - 0x1c]
push edx
call fcn.0041a510
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.00411c70
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 0x41aaee
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 0x41ab11
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x18]
call fcn.00411790
mov ecx, eax
call fcn.00411810
cmp byte [esi + 0x7f4], 0
je 0x41ab3f
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x14]
push edx
mov ecx, esi
call fcn.00417520
mov edi, eax
mov dword [ebp - 0x1c], edi
jmp 0x41ab53
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
push ecx
mov ecx, esi
call fcn.00417670
mov dword [ebp - 0x1c], eax
mov edi, eax
cmp edi, 0xffffffff
jne 0x41ac02
mov esi, dword [esi + 8]
mov edx, dword [0x589070]
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.0047d2e0
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 0x41aba3
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 0x41abc6
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 0x41abe9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
push 0x588ecc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
jmp 0x41add1
lea ecx, [esi + 0xe4]
or ebx, 0xffffffff
call fcn.0040b420
test al, al
jne 0x41ac4b
fld qword [0x531e18]
lea ecx, [ebp - 0x28]
push ecx
fstp qword [ebp - 0x28]
lea ecx, [esi + 0x680]
call fcn.0040b720
mov eax, dword [esi + 8]
mov ecx, dword [0x589080]
push eax
call fcn.00484530
push 0xdbba0
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
jmp 0x41acbd
xor eax, eax
jmp 0x41ac53
mov eax, dword [ebp - 0x24]
cmp eax, 0x384
jge 0x41acbd
push 0x3e8
inc eax
push edi
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [esi + 0x680]
mov ebx, eax
call fcn.00417230
fcomp qword [0x532070]
fnstsw ax
test ah, 5
jp 0x41acb6
lea ecx, [esi + 0x680]
call fcn.00417230
fadd qword [0x532068]
lea edx, [ebp - 0x38]
push edx
lea ecx, [esi + 0x680]
fstp qword [ebp - 0x38]
call fcn.0040b720
mov eax, dword [esi + 8]
mov ecx, dword [0x589080]
push eax
call fcn.00484530
mov edi, dword [ebp - 0x1c]
test ebx, ebx
jne 0x41ac50
mov byte [ebp - 0xd], 0
test ebx, ebx
je 0x41ad14
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.004167a0
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 [0x589070]
push eax
call fcn.0047d2e0
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 0x41ad4c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x41ad4c
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 + 0x48c]
call fcn.0040b660
lea eax, [ebp - 0xe]
push eax
lea ecx, [esi + 0x7a8]
mov byte [ebp - 0xe], 1
call fcn.0040b4e0
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 0x41ad76
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 0x41ad99
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 0x41adbc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
push 0x588ecc
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