Function at 0x411550
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43ebfc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x430
mov eax, dword [0x4517d8]
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x42c], eax
call fcn.00419568
push 0
mov dword [esp + 0x440], 0
call fcn.00423388
add esp, 4
push 1
push 2
push 0x7da
lea ecx, [esp + 0x3c]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
call fcn.00411490
call fcn.00431a75
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 8], eax
mov byte [esp + 0x43c], 1
call fcn.0043c1d1
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x60]
push eax
lea ecx, [esp + 8]
call fcn.00410d70
mov ecx, dword [esp + 4]
push 0x5c
push ecx
mov byte [esp + 0x444], 2
call fcn.00422eed
add esp, 8
test eax, eax
jne 0x41160e
or eax, 0xffffffff
jmp 0x411614
sub eax, dword [esp + 4]
sar eax, 1
push eax
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0xc]
call fcn.0040f160
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x440], 3
call fcn.0040f240
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x43c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41165b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 8]
call fcn.0040f240
mov word [esp + 0x40], 0
xor eax, eax
mov ecx, 0xf9
lea edi, [esp + 0x42]
rep stosd dword es:[edi], eax
push 0x1f4
lea ecx, [esp + 0x44]
push ecx
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, dword [esp + 4]
push 0
push edx
lea ecx, [esp + 0x20]
call fcn.004195fd
test eax, eax
je 0x4116c3
lea ecx, [esp + 0x18]
call fcn.00419345
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x1c]
call fcn.004194f9
lea ecx, [esp + 0x18]
call fcn.00419275
push 0
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x20]
call fcn.004195fd
test eax, eax
je 0x4116f7
lea ecx, [esp + 0x18]
call fcn.00419345
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x1c]
call fcn.004194f9
lea ecx, [esp + 0x18]
call fcn.00419275
lea eax, [esp + 0x38]
push eax
call fcn.0042317a
add esp, 4
test eax, eax
je 0x41171b
mov eax, dword [eax + 0x14]
add eax, 0x76c
cmp eax, 0x7d8
jg 0x4117c6
lea ecx, [esp + 0xc]
push ecx
call fcn.0042317a
add esp, 4
test eax, eax
je 0x41173f
mov eax, dword [eax + 0x14]
add eax, 0x76c
cmp eax, 0x7d8
jg 0x4117c6
lea edx, [esp + 0x30]
push edx
call fcn.0042317a
add esp, 4
test eax, eax
je 0x41175f
mov eax, dword [eax + 0x14]
add eax, 0x76c
cmp eax, 0x7d8
jg 0x4117c6
mov eax, dword [esp + 4]
add eax, 0xfffffff0
mov byte [esp + 0x43c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411785
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov byte [esp + 0x43c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4117ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x18]
mov dword [esp + 0x43c], 0xffffffff
call fcn.0041958e
mov eax, 1
jmp 0x411828
mov eax, dword [esp + 4]
add eax, 0xfffffff0
mov byte [esp + 0x43c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4117ec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov byte [esp + 0x43c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411812
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x18]
mov dword [esp + 0x43c], 0xffffffff
call fcn.0041958e
xor eax, eax
mov ecx, dword [esp + 0x434]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x42c]
call fcn.00422295
pop edi
mov esp, ebp
pop ebp
ret