Function at 0x401080
Capabilities:
Access peb ldr_data
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4149b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
push 0x103
push 0x41ec74
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0xc]
call fcn.00403280
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], esi
call fcn.004032c0
test eax, eax
jne 0x4010d4
push 0x41a45c
call fcn.00409450
jmp 0x4010f9
call fcn.00401600
mov edi, eax
test edi, edi
je 0x401121
push 0x41a430
call fcn.00409450
add esp, 4
mov ecx, edi
call fcn.00405820
push edi
call fcn.00405ade
add esp, 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.004032b0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
push 0x104
push 0x41eb6c
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
xor eax, eax
push 2
mov word [0x41ec70], ax
push 0x41eb6c
push 0x41ec70
mov byte [0x41ec72], al
call fcn.004095d0
mov ebx, dword [esp + 0x40]
add esp, 0xc
cmp ebx, 2
jge 0x401188
call fcn.00401000
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.004032b0
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
mov edi, dword [esp + 0x38]
push 0x41a42c
mov ecx, dword [edi + 4]
push ecx
call fcn.00411680
add esp, 8
test eax, eax
jne 0x401230
cmp ebx, 3
jne 0x401230
mov edx, dword [edi + 8]
push 0x41a428
push edx
call fcn.00411680
add esp, 8
test eax, eax
jne 0x401230
push 0x104
push 0x41ea64
call fcn.004023e0
add esp, 8
push 0x41a408
call fcn.00409450
add esp, 4
call fcn.004016e0
test eax, eax
je 0x401206
push 2
call fcn.00402130
add esp, 4
test eax, eax
je 0x401206
push 0x41a3f0
call fcn.00409450
add esp, 4
call fcn.00401ad0
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.004032b0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
push 0x104
push 0x41ea64
call fcn.004023e0
add esp, 8
test eax, eax
jne 0x40127b
push 0x41a3b8
call fcn.00409450
add esp, 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.004032b0
pop edi
pop esi
mov eax, 0x65
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
mov eax, dword [edi + 4]
push str._stop
push eax
call fcn.00411680
add esp, 8
test eax, eax
jne 0x4012ce
push 0x41a394
call fcn.00409450
push 2
call fcn.00402130
mov esi, eax
add esp, 8
test esi, esi
jne 0x4012bc
push 0x41a380
call fcn.00409450
add esp, 4
jmp 0x4015d7
push 0x41a36c
call fcn.00409450
add esp, 4
jmp 0x4015d7
mov ecx, dword [edi + 4]
push str._hide
push ecx
call fcn.00411680
add esp, 8
test eax, eax
jne 0x401321
push 0x41a394
call fcn.00409450
push 1
call fcn.00402130
mov esi, eax
add esp, 8
test esi, esi
jne 0x40130f
push 0x41a344
call fcn.00409450
add esp, 4
jmp 0x4015d7
push 0x41a324
call fcn.00409450
add esp, 4
jmp 0x4015d7
mov edx, dword [edi + 4]
push str._show
push edx
call fcn.00411680
add esp, 8
test eax, eax
jne 0x401374
push 0x41a394
call fcn.00409450
push 0
call fcn.00402130
mov esi, eax
add esp, 8
test esi, esi
jne 0x401362
push 0x41a2fc
call fcn.00409450
add esp, 4
jmp 0x4015d7
push 0x41a2dc
call fcn.00409450
add esp, 4
jmp 0x4015d7
mov eax, dword [edi + 4]
push 0x41a42c
push eax
call fcn.00411680
add esp, 8
test eax, eax
jne 0x4013c7
push 0x41a408
call fcn.00409450
push 2
call fcn.00402130
mov esi, eax
add esp, 8
test esi, esi
je 0x4013b5
push 0x41a2c4
call fcn.00409450
add esp, 4
jmp 0x4015d7
push str.csagtctr__rm__auto
call fcn.00409527
add esp, 4
jmp 0x4015d7
mov ecx, dword [edi + 4]
push str._svrip
push ecx
call fcn.00411680
add esp, 8
test eax, eax
jne 0x401425
cmp ebx, 3
jge 0x4013e8
push 0x41a298
jmp 0x401448
push 0x41a394
call fcn.00409450
push 2
call fcn.00402130
mov esi, eax
add esp, 8
test esi, esi
jne 0x4015a7
mov edx, dword [edi + 8]
push edx
call fcn.00402450
add esp, 4
test eax, eax
je 0x4014ba
push eax
push 0x41a274
jmp 0x4014b2
mov eax, dword [edi + 4]
push str._svrport
push eax
call fcn.00411680
add esp, 8
test eax, eax
jne 0x4014eb
cmp ebx, 3
jge 0x401478
push 0x41a258
call fcn.00409450
add esp, 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.004032b0
pop edi
pop esi
mov eax, 0x66
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
push 0x41a394
call fcn.00409450
push 2
call fcn.00402130
mov esi, eax
add esp, 8
test esi, esi
jne 0x4015a7
mov ecx, dword [edi + 8]
push ecx
call fcn.0040951c
push eax
call fcn.00402530
add esp, 8
test eax, eax
je 0x4014ba
push eax
push 0x41a234
call fcn.00409450
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 0x4015d7
push 0x41a218
call fcn.00409450
add esp, 4
jmp 0x4015d7
mov edx, dword [edi + 4]
push str._debug
push edx
call fcn.00411680
add esp, 8
test eax, eax
jne 0x4015b6
mov ax, word [0x41a20c]
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 0x40154f
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 0x41a394
call fcn.00409450
push 2
call fcn.00402130
mov esi, eax
add esp, 8
test esi, esi
jne 0x4015a7
lea ecx, [esp + 0x10]
push ecx
call fcn.00402630
add esp, 4
test eax, eax
je 0x401588
push eax
push 0x41a1e8
call fcn.00409450
add esp, 8
push 1
call fcn.00402130
mov esi, eax
add esp, 4
test esi, esi
je 0x4015d7
push 0x41a218
call fcn.00409450
add esp, 4
jmp 0x4015d7
push 0x41a1cc
call fcn.00409450
add esp, 4
jmp 0x4015d7
mov edx, dword [edi + 4]
push str._ver
push edx
call fcn.00411680
add esp, 8
test eax, eax
jne 0x4015d2
call fcn.00401050
jmp 0x4015d7
call fcn.00401000
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.004032b0
mov ecx, dword [esp + 0x24]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret