Function at 0x408ec5
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push 0
call fcn.004b53a5
add esp, 4
mov dword [ebp - 0x210], eax
cmp dword [0x4d98cc], 0
jne 0x408ef7
mov eax, dword [ebp - 0x210]
mov dword [0x4d96c8], eax
call fcn.004094a1
movsx ecx, byte [0x4d96cc]
test ecx, ecx
jne 0x408f14
push 0x1ff
push 0x4d96cc
call fcn.004b58f2
add esp, 8
mov edx, dword [ebp - 0x210]
sub edx, dword [0x4d98cc]
cmp edx, 0x708
jg 0x408f2d
jmp 0x40926a
mov eax, dword [ebp - 0x210]
mov dword [0x4d98cc], eax
call fcn.00408a84
call fcn.00410fa0
push 0x4d90c0
push 0x4ca284
push 0x4d94c8
call fcn.004b486f
add esp, 0xc
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
push 0x4d94c8
push str._slmgrd._X
push 0x4d8cbc
call fcn.004b486f
add esp, 0x10
push 0x80
push 0x4d8cbc
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x4ca294
push 0x4d8cbc
mov ecx, dword [0x4e7604]
push ecx
call fcn.0042e4d0
add esp, 0xc
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
jne 0x409069
mov dword [ebp - 0x214], 0x61
jmp 0x408fcd
mov edx, dword [ebp - 0x214]
add edx, 1
mov dword [ebp - 0x214], edx
cmp dword [ebp - 0x214], 0x6d
jge 0x409036
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
mov eax, dword [ebp - 0x214]
push eax
push 0x4d94c8
push str._slmgrd_c._X
push 0x4d8cbc
call fcn.004b486f
add esp, 0x14
push 0x80
push 0x4d8cbc
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x4ca2a8
push 0x4d8cbc
mov ecx, dword [0x4e7604]
push ecx
call fcn.0042e4d0
add esp, 0xc
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
je 0x409034
jmp 0x409036
jmp 0x408fbe
cmp dword [ebp - 0x218], 0
jne 0x409069
push 0
push 1
call fcn.0040f302
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4d8cbc
push str.Cant_open__s__errno:__d_n
call fcn.0040f492
add esp, 0xc
jmp 0x40926a
mov edx, dword [0x4e7604]
push edx
call fcn.00437860
add esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
jmp 0x40908f
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x408]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
je 0x4090a9
mov eax, dword [ebp - 0xc]
push eax
call fcn.004108f0
add esp, 4
test eax, eax
je 0x4090a7
jmp 0x4090a9
jmp 0x409083
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
push str.PID_X_n
mov ecx, dword [ebp - 0x218]
push ecx
call fcn.004b558a
add esp, 0xc
push 0x4d96c8
call fcn.004b5b17
add esp, 4
push eax
call fcn.004b5a25
add esp, 4
push eax
push str.STARTED_s
mov edx, dword [ebp - 0x218]
push edx
call fcn.004b558a
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call fcn.004b5b17
add esp, 4
push eax
call fcn.004b5a25
add esp, 4
push eax
push str.STAMPED_s
mov ecx, dword [ebp - 0x218]
push ecx
call fcn.004b558a
add esp, 0xc
mov edx, dword [0x4d94c4]
push edx
call fcn.0040927b
add esp, 4
push eax
push str.LMGRD_s_n
mov eax, dword [ebp - 0x218]
push eax
call fcn.004b558a
add esp, 0xc
lea ecx, [ebp - 0x20c]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x214], 0
jmp 0x409163
mov edx, dword [ebp - 0x214]
add edx, 1
mov dword [ebp - 0x214], edx
mov eax, dword [0x4e7604]
mov ecx, dword [eax + 0xe0]
mov edx, dword [ebp - 0x214]
cmp dword [ecx + edx*4], 0
je 0x4091f3
mov eax, dword [0x4e7604]
mov ecx, dword [eax + 0xe0]
mov edx, dword [ebp - 0x214]
mov eax, dword [ecx + edx*4]
push eax
call fcn.004b4950
add esp, 4
mov ecx, dword [ebp - 8]
add ecx, eax
lea edx, [ebp - 0xc]
cmp ecx, edx
jbe 0x4091a5
jmp 0x4091f3
mov eax, dword [0x4e7604]
mov ecx, dword [eax + 0xe0]
mov edx, dword [ebp - 0x214]
mov eax, dword [ecx + edx*4]
push eax
push 0x4ca2f4
mov ecx, dword [ebp - 8]
push ecx
call fcn.004b486f
add esp, 0xc
mov edx, dword [ebp - 8]
push edx
call fcn.004b4950
add esp, 4
mov ecx, dword [ebp - 8]
add ecx, eax
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov byte [edx], 0x20
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
jmp 0x409154
mov ecx, dword [ebp - 8]
mov byte [ecx], 0
lea edx, [ebp - 0x20c]
push edx
push str.LICENSE_FILE_s_n
mov eax, dword [ebp - 0x218]
push eax
call fcn.004b558a
add esp, 0xc
cmp dword [ebp - 0xc], 0
je 0x40923a
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x410]
push edx
push str.TCP_PORT_d_n
mov eax, dword [ebp - 0x218]
push eax
call fcn.004b558a
add esp, 0xc
jmp 0x40924e
push str.TCP_PORT_1_n
mov ecx, dword [ebp - 0x218]
push ecx
call fcn.004b558a
add esp, 8
mov edx, dword [ebp - 0x218]
push edx
call fcn.004b4d80
add esp, 4
push 2
push 0x4d8cbc
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esp, ebp
pop ebp
ret