Function at 0x40c720
Capabilities:
Check if file exists
Create directory
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x58a5c8
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x5f4760]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f4760]
xor eax, esp
push eax
lea eax, [esp + 0x230]
mov dword fs:[0], eax
test byte [0x604de0], 1
mov ebp, dword [esp + 0x240]
jne 0x40c79e
or dword [0x604de0], 1
xor ebx, ebx
mov dword [esp + 0x238], ebx
push 0x604ddc
call fcn.004030f0
push 0x590ad0
call fcn.004a444f
add esp, 4
or edi, 0xffffffff
mov dword [esp + 0x238], edi
jmp 0x40c7a3
xor ebx, ebx
or edi, 0xffffffff
mov eax, dword [0x604ddc]
cmp dword [eax - 0xc], ebx
je 0x40c7c3
mov eax, 0x604ddc
mov ebx, ebp
call fcn.00406760
mov eax, 1
jmp 0x40ca4c
push 0x104
lea ecx, [esp + 0x129]
push ebx
push ecx
mov byte [esp + 0x130], bl
call fcn.004add60
add esp, 0xc
lea edx, [esp + 0x14]
push edx
call fcn.004030f0
mov dword [esp + 0x238], 1
push 0x105
lea eax, [esp + 0x128]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40c81e
mov dword [esp + 0x238], edi
lea ecx, [esp + 0x14]
push ecx
jmp 0x40ca45
lea edx, [esp + 0x124]
push 0x5c
push edx
call fcn.004a5259
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x40ca39
push str.360EntAdmin.exe
push esi
call fcn.004a4b4f
add esp, 8
test eax, eax
jne 0x40c882
mov edx, str.EntAdminpublishTaskInfo_
lea ebx, [esp + 0x14]
call fcn.00403440
lea edx, [esp + 0x124]
mov ebx, 0x604ddc
mov byte [esi + 1], 0
call fcn.00403440
mov eax, dword [esp + 0x14]
mov edx, dword [eax - 0xc]
push eax
push ebx
call fcn.00403150
jmp 0x40c9da
push 0x5d3ba8
push esi
call fcn.004a4b4f
add esp, 8
test eax, eax
jne 0x40ca39
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x128]
mov byte [esi + 1], bl
call fcn.00402fe0
mov byte [esp + 0x238], 2
mov edx, 0x5d2d34
lea edi, [esp + 0x18]
call fcn.00403250
push 0x103
lea edx, [esp + 0x25]
push ebx
push edx
mov byte [esp + 0x2c], bl
call fcn.004add60
mov eax, dword [esp + 0x24]
add esp, 0xc
push eax
push 0x103
lea ecx, [esp + 0x28]
push ecx
push 0x5d2b98
push str.datapath
push str.server
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x20]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40c904
sub eax, edx
je 0x40c998
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40c998
lea edx, [esp + 0x20]
lea ebx, [esp + 0x18]
call fcn.00403440
push 0x104
lea eax, [esp + 0x24]
push 0
push eax
call fcn.004add60
mov ecx, dword [esp + 0x24]
add esp, 0xc
push str.pushdat
push ecx
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea edx, [esp + 0x20]
mov ebx, 0x604ddc
call fcn.00403440
mov edx, dword [0x604ddc]
mov ecx, dword [edx - 0xc]
lea eax, [ecx - 1]
test eax, eax
jl 0x40c98e
cmp eax, ecx
jg 0x40c98e
cmp byte [edx + eax], 0x5c
je 0x40c9c5
mov edx, 0x5d2c20
mov edi, ebx
call fcn.00403250
jmp 0x40c9c5
push 0x80070057
call fcn.00401e70
mov edx, str.TaskInfo_
lea ebx, [esp + 0x14]
call fcn.00403440
lea edx, [esp + 0x124]
mov ebx, 0x604ddc
call fcn.00403440
mov eax, dword [esp + 0x14]
mov edx, dword [eax - 0xc]
push eax
push ebx
call fcn.00403150
mov byte [esp + 0x238], 1
lea eax, [esp + 0x18]
push eax
call fcn.00403090
or edi, 0xffffffff
mov eax, 0x604ddc
mov ebx, ebp
call fcn.00406760
cmp dword [esp + 0x244], 0
je 0x40ca21
mov eax, dword [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40ca21
mov eax, dword [ebp]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
mov dword [esp + 0x238], edi
lea ecx, [esp + 0x14]
push ecx
call fcn.00403090
mov eax, esi
jmp 0x40ca4c
mov dword [esp + 0x238], edi
lea edx, [esp + 0x14]
push edx
call fcn.00403090
mov eax, 1
jmp 0x40ca4c
mov dword [esp + 0x238], edi
lea eax, [esp + 0x14]
push eax
call fcn.00403090
xor eax, eax
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.004a314d
add esp, 0x228
ret 8