Function at 0x41a5b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5195c0
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.00412770
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 0x41a649
push edi
lea ecx, [ebp - 0x14]
call fcn.00406e00
mov edx, dword [ebp - 0x14]
cmp dword [edx - 8], edi
jge 0x41a658
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.004eb8eb
add esp, 8
test eax, eax
js 0x41a64e
mov ecx, dword [ebp - 0x14]
cmp eax, dword [ecx - 8]
jg 0x41a64e
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.0041a370
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.0040f630
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 0x41a6d9
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.004164b0
mov edi, eax
mov bl, 8
mov byte [ebp - 4], bl
lea edx, [ebp - 0x1c]
push edx
call fcn.0041a170
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.00411990
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 0x41a74e
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 0x41a771
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x18]
call fcn.004114b0
mov ecx, eax
call fcn.00411530
cmp byte [esi + 0x7f4], 0
je 0x41a79f
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x14]
push edx
mov ecx, esi
call fcn.00417180
mov edi, eax
mov dword [ebp - 0x1c], edi
jmp 0x41a7b3
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
push ecx
mov ecx, esi
call fcn.004172d0
mov dword [ebp - 0x1c], eax
mov edi, eax
cmp edi, 0xffffffff
jne 0x41a862
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.0047cfd0
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 0x41a803
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 0x41a826
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 0x41a849
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 0x41aa31
lea ecx, [esi + 0xe4]
or ebx, 0xffffffff
call fcn.0040b440
test al, al
jne 0x41a8ab
fld qword [0x531e18]
lea ecx, [ebp - 0x28]
push ecx
fstp qword [ebp - 0x28]
lea ecx, [esi + 0x680]
call fcn.0040b680
mov eax, dword [esi + 8]
mov ecx, dword [0x589080]
push eax
call fcn.004841d0
push 0xdbba0
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
jmp 0x41a91d
xor eax, eax
jmp 0x41a8b3
mov eax, dword [ebp - 0x24]
cmp eax, 0x384
jge 0x41a91d
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.00416e90
fcomp qword [0x532070]
fnstsw ax
test ah, 5
jp 0x41a916
lea ecx, [esi + 0x680]
call fcn.00416e90
fadd qword [0x532068]
lea edx, [ebp - 0x38]
push edx
lea ecx, [esi + 0x680]
fstp qword [ebp - 0x38]
call fcn.0040b680
mov eax, dword [esi + 8]
mov ecx, dword [0x589080]
push eax
call fcn.004841d0
mov edi, dword [ebp - 0x1c]
test ebx, ebx
jne 0x41a8b0
mov byte [ebp - 0xd], 0
test ebx, ebx
je 0x41a974
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.004164b0
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.0047cfd0
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 0x41a9ac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x41a9ac
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.00416dd0
lea eax, [ebp - 0xe]
push eax
lea ecx, [esi + 0x7a8]
mov byte [ebp - 0xe], 1
call fcn.0040b500
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 0x41a9d6
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 0x41a9f9
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 0x41aa1c
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