Function at 0x401080
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x41489b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push esi
push edi
lea ecx, [esp + 0xc]
xor esi, esi
call fcn.00403090
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x134], esi
call fcn.004030d0
test eax, eax
jne 0x4010ca
push 0x41944c
call fcn.00409350
jmp 0x4010ef
call fcn.004015f0
mov edi, eax
test edi, edi
je 0x40110d
push 0x419420
call fcn.00409350
add esp, 4
mov ecx, edi
call fcn.004053e0
push edi
call fcn.0040569e
add esp, 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x130], 0xffffffff
call fcn.004030c0
xor eax, eax
jmp 0x4015ca
push 0x104
push 0x41da9c
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
xor eax, eax
push 2
mov word [0x41dba0], ax
push 0x41da9c
push 0x41dba0
mov byte [0x41dba2], al
call fcn.00409520
mov ebx, dword [esp + 0x144]
add esp, 0xc
cmp ebx, 2
jge 0x40116d
call fcn.00401000
lea ecx, [esp + 0xc]
mov dword [esp + 0x130], 0xffffffff
call fcn.004030c0
mov eax, 1
jmp 0x4015ca
mov edi, dword [esp + 0x13c]
push 0x41941c
mov ecx, dword [edi + 4]
push ecx
call fcn.00411590
add esp, 8
test eax, eax
jne 0x4011f5
cmp ebx, 3
jne 0x4011f5
mov edx, dword [edi + 8]
push 0x419418
push edx
call fcn.00411590
add esp, 8
test eax, eax
jne 0x4011f5
push 0x104
push 0x41d994
call fcn.00402350
add esp, 8
push 0x4193f8
call fcn.00409350
add esp, 4
call fcn.004016d0
test eax, eax
je 0x4011d5
push 2
call fcn.004020e0
add esp, 4
call fcn.00401a40
lea ecx, [esp + 0xc]
mov dword [esp + 0x130], 0xffffffff
call fcn.004030c0
xor eax, eax
jmp 0x4015ca
push 0x104
push 0x41d994
call fcn.00402350
add esp, 8
test eax, eax
jne 0x401236
push 0x4193c0
call fcn.00409350
add esp, 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x130], 0xffffffff
call fcn.004030c0
mov eax, 0x65
jmp 0x4015ca
mov eax, dword [edi + 4]
push str._stop
push eax
call fcn.00411590
add esp, 8
test eax, eax
jne 0x401289
push 0x41939c
call fcn.00409350
push 2
call fcn.004020e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x401277
push 0x419388
call fcn.00409350
add esp, 4
jmp 0x4015b4
push 0x419374
call fcn.00409350
add esp, 4
jmp 0x4015b4
mov ecx, dword [edi + 4]
push str._hide
push ecx
call fcn.00411590
add esp, 8
test eax, eax
jne 0x4012dc
push 0x41939c
call fcn.00409350
push 1
call fcn.004020e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4012ca
push 0x41934c
call fcn.00409350
add esp, 4
jmp 0x4015b4
push 0x41932c
call fcn.00409350
add esp, 4
jmp 0x4015b4
mov edx, dword [edi + 4]
push str._show
push edx
call fcn.00411590
add esp, 8
test eax, eax
jne 0x40132f
push 0x41939c
call fcn.00409350
push 0
call fcn.004020e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40131d
push 0x419304
call fcn.00409350
add esp, 4
jmp 0x4015b4
push 0x4192e4
call fcn.00409350
add esp, 4
jmp 0x4015b4
mov eax, dword [edi + 4]
push 0x41941c
push eax
call fcn.00411590
add esp, 8
test eax, eax
jne 0x4013ae
mov cl, byte [0x41dba4]
lea edi, [esp + 0x25]
mov byte [esp + 0x24], cl
mov ecx, 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x4193f8
stosb byte es:[edi], al
call fcn.00409350
push 2
call fcn.004020e0
mov esi, eax
add esp, 8
test esi, esi
je 0x401388
push 0x4192cc
call fcn.00409350
add esp, 4
jmp 0x4015b4
push str.smpagtctr.exe
lea edx, [esp + 0x28]
push str._s__rm__auto
push edx
call fcn.004094c9
lea eax, [esp + 0x30]
push eax
call fcn.00409427
add esp, 0x10
jmp 0x4015b4
mov ecx, dword [edi + 4]
push str._svrip
push ecx
call fcn.00411590
add esp, 8
test eax, eax
jne 0x40140c
cmp ebx, 3
jge 0x4013cf
push 0x419294
jmp 0x40142f
push 0x41939c
call fcn.00409350
push 2
call fcn.004020e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x401584
mov edx, dword [edi + 8]
push edx
call fcn.004023d0
add esp, 4
test eax, eax
je 0x401497
push eax
push 0x419270
jmp 0x40148f
mov eax, dword [edi + 4]
push str._svrport
push eax
call fcn.00411590
add esp, 8
test eax, eax
jne 0x4014c8
cmp ebx, 3
jge 0x401455
push 0x419254
call fcn.00409350
add esp, 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x130], 0xffffffff
call fcn.004030c0
mov eax, 0x66
jmp 0x4015ca
push 0x41939c
call fcn.00409350
push 2
call fcn.004020e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x401584
mov ecx, dword [edi + 8]
push ecx
call fcn.0040941c
push eax
call fcn.004024b0
add esp, 8
test eax, eax
je 0x401497
push eax
push 0x419230
call fcn.00409350
add esp, 8
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call fcn.004020e0
mov esi, eax
add esp, 4
test esi, esi
je 0x4015b4
push 0x419214
call fcn.00409350
add esp, 4
jmp 0x4015b4
mov edx, dword [edi + 4]
push str._debug
push edx
call fcn.00411590
add esp, 8
test eax, eax
jne 0x401593
mov ax, word [0x419208]
xor ecx, ecx
mov dword [esp + 0x12], ecx
cmp ebx, 3
mov dword [esp + 0x16], ecx
mov word [esp + 0x10], ax
mov dword [esp + 0x1a], ecx
mov dword [esp + 0x1e], ecx
mov word [esp + 0x22], cx
jl 0x40152c
mov edi, dword [edi + 8]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x41939c
call fcn.00409350
push 2
call fcn.004020e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x401584
lea ecx, [esp + 0x10]
push ecx
call fcn.004025b0
add esp, 4
test eax, eax
je 0x401565
push eax
push 0x4191e4
call fcn.00409350
add esp, 8
push 1
call fcn.004020e0
mov esi, eax
add esp, 4
test esi, esi
je 0x4015b4
push 0x419214
call fcn.00409350
add esp, 4
jmp 0x4015b4
push 0x4191c8
call fcn.00409350
add esp, 4
jmp 0x4015b4
mov edx, dword [edi + 4]
push str._ver
push edx
call fcn.00411590
add esp, 8
test eax, eax
jne 0x4015af
call fcn.00401050
jmp 0x4015b4
call fcn.00401000
lea ecx, [esp + 0xc]
mov dword [esp + 0x130], 0xffffffff
call fcn.004030c0
mov eax, esi
mov ecx, dword [esp + 0x128]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x128
ret