Function at 0x401080
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x41526b
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.004032a0
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x134], esi
call fcn.004032e0
test eax, eax
jne 0x4010ca
push 0x41a44c
call fcn.00409d10
jmp 0x4010ef
call fcn.00401620
mov edi, eax
test edi, edi
je 0x40110d
push 0x41a420
call fcn.00409d10
add esp, 4
mov ecx, edi
call fcn.00405860
push edi
call fcn.00405b1e
add esp, 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x130], 0xffffffff
call fcn.004032d0
xor eax, eax
jmp 0x401605
push 0x104
push 0x41f3ac
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
xor eax, eax
push 2
mov word [0x41f4b0], ax
push 0x41f3ac
push 0x41f4b0
mov byte [0x41f4b2], al
call fcn.00409ee0
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.004032d0
mov eax, 1
jmp 0x401605
mov edi, dword [esp + 0x13c]
push 0x41a41c
mov ecx, dword [edi + 4]
push ecx
call fcn.00411f50
add esp, 8
test eax, eax
jne 0x401230
cmp ebx, 3
jne 0x401230
mov edx, dword [edi + 8]
push 0x41a418
push edx
call fcn.00411f50
add esp, 8
test eax, eax
jne 0x401230
push 0x104
push 0x41f2a4
call fcn.004023f0
add esp, 8
push 0x41a3f8
call fcn.00409d10
add esp, 4
call fcn.00401700
test eax, eax
je 0x401210
push 2
call fcn.00402130
add esp, 4
test eax, eax
je 0x401210
push 0x41a3e0
call fcn.00409d10
add esp, 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x130], 0xffffffff
call fcn.004032d0
mov eax, 2
jmp 0x401605
call fcn.00401a70
lea ecx, [esp + 0xc]
mov dword [esp + 0x130], 0xffffffff
call fcn.004032d0
xor eax, eax
jmp 0x401605
push 0x104
push 0x41f2a4
call fcn.004023f0
add esp, 8
test eax, eax
jne 0x401271
push 0x41a3a8
call fcn.00409d10
add esp, 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x130], 0xffffffff
call fcn.004032d0
mov eax, 0x65
jmp 0x401605
mov eax, dword [edi + 4]
push str._stop
push eax
call fcn.00411f50
add esp, 8
test eax, eax
jne 0x4012c4
push 0x41a384
call fcn.00409d10
push 2
call fcn.00402130
mov esi, eax
add esp, 8
test esi, esi
jne 0x4012b2
push 0x41a370
call fcn.00409d10
add esp, 4
jmp 0x4015ef
push 0x41a35c
call fcn.00409d10
add esp, 4
jmp 0x4015ef
mov ecx, dword [edi + 4]
push str._hide
push ecx
call fcn.00411f50
add esp, 8
test eax, eax
jne 0x401317
push 0x41a384
call fcn.00409d10
push 1
call fcn.00402130
mov esi, eax
add esp, 8
test esi, esi
jne 0x401305
push 0x41a334
call fcn.00409d10
add esp, 4
jmp 0x4015ef
push 0x41a314
call fcn.00409d10
add esp, 4
jmp 0x4015ef
mov edx, dword [edi + 4]
push str._show
push edx
call fcn.00411f50
add esp, 8
test eax, eax
jne 0x40136a
push 0x41a384
call fcn.00409d10
push 0
call fcn.00402130
mov esi, eax
add esp, 8
test esi, esi
jne 0x401358
push 0x41a2ec
call fcn.00409d10
add esp, 4
jmp 0x4015ef
push 0x41a2cc
call fcn.00409d10
add esp, 4
jmp 0x4015ef
mov eax, dword [edi + 4]
push 0x41a41c
push eax
call fcn.00411f50
add esp, 8
test eax, eax
jne 0x4013e9
mov cl, byte [0x41f4b4]
lea edi, [esp + 0x25]
mov byte [esp + 0x24], cl
mov ecx, 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x41a3f8
stosb byte es:[edi], al
call fcn.00409d10
push 2
call fcn.00402130
mov esi, eax
add esp, 8
test esi, esi
je 0x4013c3
push 0x41a3e0
call fcn.00409d10
add esp, 4
jmp 0x4015ef
push str.smpagtctr.exe
lea edx, [esp + 0x28]
push str._s__rm__auto
push edx
call fcn.00409e89
lea eax, [esp + 0x30]
push eax
call fcn.00409de7
add esp, 0x10
jmp 0x4015ef
mov ecx, dword [edi + 4]
push str._svrip
push ecx
call fcn.00411f50
add esp, 8
test eax, eax
jne 0x401447
cmp ebx, 3
jge 0x40140a
push 0x41a294
jmp 0x40146a
push 0x41a384
call fcn.00409d10
push 2
call fcn.00402130
mov esi, eax
add esp, 8
test esi, esi
jne 0x4015bf
mov edx, dword [edi + 8]
push edx
call fcn.00402470
add esp, 4
test eax, eax
je 0x4014d2
push eax
push 0x41a270
jmp 0x4014ca
mov eax, dword [edi + 4]
push str._svrport
push eax
call fcn.00411f50
add esp, 8
test eax, eax
jne 0x401503
cmp ebx, 3
jge 0x401490
push 0x41a254
call fcn.00409d10
add esp, 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x130], 0xffffffff
call fcn.004032d0
mov eax, 0x66
jmp 0x401605
push 0x41a384
call fcn.00409d10
push 2
call fcn.00402130
mov esi, eax
add esp, 8
test esi, esi
jne 0x4015bf
mov ecx, dword [edi + 8]
push ecx
call fcn.00409ddc
push eax
call fcn.00402550
add esp, 8
test eax, eax
je 0x4014d2
push eax
push 0x41a230
call fcn.00409d10
add esp, 8
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call fcn.00402130
mov esi, eax
add esp, 4
test esi, esi
je 0x4015ef
push 0x41a214
call fcn.00409d10
add esp, 4
jmp 0x4015ef
mov edx, dword [edi + 4]
push str._debug
push edx
call fcn.00411f50
add esp, 8
test eax, eax
jne 0x4015ce
mov ax, word [0x41a208]
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 0x401567
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 0x41a384
call fcn.00409d10
push 2
call fcn.00402130
mov esi, eax
add esp, 8
test esi, esi
jne 0x4015bf
lea ecx, [esp + 0x10]
push ecx
call fcn.00402650
add esp, 4
test eax, eax
je 0x4015a0
push eax
push 0x41a1e4
call fcn.00409d10
add esp, 8
push 1
call fcn.00402130
mov esi, eax
add esp, 4
test esi, esi
je 0x4015ef
push 0x41a214
call fcn.00409d10
add esp, 4
jmp 0x4015ef
push 0x41a1c8
call fcn.00409d10
add esp, 4
jmp 0x4015ef
mov edx, dword [edi + 4]
push str._ver
push edx
call fcn.00411f50
add esp, 8
test eax, eax
jne 0x4015ea
call fcn.00401050
jmp 0x4015ef
call fcn.00401000
lea ecx, [esp + 0xc]
mov dword [esp + 0x130], 0xffffffff
call fcn.004032d0
mov eax, esi
mov ecx, dword [esp + 0x128]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x128
ret