Function at 0x418620
Capabilities:
Check if file exists
Create directory
Delete file
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfa4
mov eax, dword [0x442310]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov edi, ecx
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov dword [ebp - 0xf84], edi
call fcn.0041dbc0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push dword [ebp + 8]
or dword [edi + 0x24c], 2
mov ecx, edi
call fcn.004184f0
xor ecx, ecx
cmp eax, 1
cmove eax, ecx
lea ecx, [ebp - 0xf7c]
mov dword [ebp - 0xf88], eax
call sym.IPSClientService.exe_public:_void___thiscall_CUtilities::constructor_void_
lea ecx, [ebp - 0xf7c]
call sym.IPSClientService.exe_public:_char_const____thiscall_CUtilities::GetServicePathA_void_
mov edx, eax
mov dword [ebp - 0x288], 0xf
mov dword [ebp - 0x28c], 0
mov byte [ebp - 0x29c], 0
cmp byte [edx], 0
jne 0x4186c8
xor ecx, ecx
jmp 0x4186d9
mov ecx, edx
lea esi, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4186d0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x29c]
call fcn.004022d0
push 0xffffffffffffffff
push 0
push 0x442044
lea ecx, [ebp - 0x29c]
call fcn.004056f0
push 6
lea ecx, [ebp - 0xf7c]
call sym.IPSClientService.exe_public:_wchar_t_const____thiscall_CUtilities::GetServicePathW_void_
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x2b4]
push eax
lea ecx, [ebp - 0xf7c]
call sym.IPSClientService.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_CUtilities::GetBasicInfoFile_void_
cmp dword [ebp - 0x2a4], 0
je 0x418744
cmp dword [ebp - 0x2a0], 8
lea eax, [ebp - 0x2b4]
cmovae eax, dword [ebp - 0x2b4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0xf7c]
call sym.IPSClientService.exe_public:_wchar_t_const____thiscall_CUtilities::GetServicePathW_void_
mov edx, eax
mov dword [ebp - 0x228], 7
xor eax, eax
mov dword [ebp - 0x22c], 0
mov word [ebp - 0x23c], ax
cmp word [edx], ax
jne 0x418777
xor ecx, ecx
jmp 0x41878f
mov ecx, edx
lea esi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418780
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x23c]
call fcn.00402480
push 6
push str.Image
lea ecx, [ebp - 0x23c]
call fcn.004021a0
cmp dword [ebp - 0x228], 8
lea eax, [ebp - 0x23c]
cmovae eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4187ea
cmp dword [ebp - 0x228], 8
lea eax, [ebp - 0x23c]
push 0
cmovae eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [ebp - 0x228], 8
lea eax, [ebp - 0x23c]
push ebx
cmovae eax, dword [ebp - 0x23c]
push str.everyone
push eax
call fcn.00417890
add esp, 8
lea eax, [ebp - 0x29c]
lea ecx, [ebp - 0x2cc]
push eax
call sym.IPSClientService.exe_public:_void___thiscall_CConfigHelper::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
push 0x40
lea eax, [ebp - 0x30c]
push 0
push eax
call fcn.0041dbc0
add esp, 0xc
lea ecx, [ebp - 0x30c]
call sym.IPSClientService.exe_public:_void___thiscall_CXmlNode::constructor_void_
push 0xf
push str.requestSections
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x210], 0xf
mov dword [ebp - 0x214], 0
mov byte [ebp - 0x224], 0
call fcn.004022d0
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x2cc]
call sym.IPSClientService.exe_public:_bool___thiscall_CConfigHelper::GetGroupSectionNodeA_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_CXmlNode__
cmp dword [ebp - 0x210], 0x10
mov bl, al
jb 0x41889c
push dword [ebp - 0x224]
call fcn.0040f3b0
add esp, 4
test bl, bl
je 0x4189b8
lea eax, [ebp - 0xf80]
push eax
lea ecx, [ebp - 0x30c]
call sym.IPSClientService.exe_public:_void___thiscall_CXmlNode::GetChildren_class_std::list_class_CXmlNode___class_std::allocator_class_CXmlNode______
mov eax, dword [ebp - 0xf80]
cmp dword [eax + 4], 0
jbe 0x4189b8
mov eax, dword [eax]
mov esi, dword [eax]
cmp esi, eax
je 0x4189b8
mov ebx, dword [esi + 8]
test ebx, ebx
je 0x4189a8
push 8
push str.filename
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x258], 0xf
mov dword [ebp - 0x25c], 0
mov byte [ebp - 0x26c], 0
mov dword [ebp - 0x210], 0xf
mov dword [ebp - 0x214], 0
mov byte [ebp - 0x224], 0
call fcn.004022d0
lea eax, [ebp - 0x26c]
mov ecx, ebx
push eax
lea eax, [ebp - 0x224]
push eax
call sym.IPSClientService.exe_public:_void___thiscall_CXmlNode::GetAttributeValueA_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____
cmp dword [ebp - 0x210], 0x10
jb 0x418951
push dword [ebp - 0x224]
call fcn.0040f3b0
add esp, 4
cmp dword [ebp - 0x258], 0x10
lea eax, [ebp - 0x26c]
mov edi, dword [ebp - 0x26c]
push 0
cmovae eax, edi
push 0x43b184
push eax
call fcn.00407d00
add esp, 0xc
test eax, eax
jne 0x418aca
cmp dword [ebp - 0x25c], eax
setne al
test eax, eax
jne 0x418aca
cmp dword [ebp - 0x258], 0x10
jb 0x4189a2
push edi
call fcn.0040f3b0
add esp, 4
mov edi, dword [ebp - 0xf84]
mov eax, dword [ebp - 0xf80]
mov esi, dword [esi]
cmp esi, dword [eax]
jne 0x4188d2
push 0
lea ecx, [edi + 0x274]
call fcn.0040d9f0
lea ecx, [edi + 0x2a4]
call fcn.00415480
mov esi, dword [ebp - 0xf88]
pop ebx
test esi, esi
js 0x4189fb
mov ecx, 4
lea eax, [edi + 0x248]
xchg dword [eax], ecx
lea eax, [edi + 0x244]
push eax
push dword [edi + 0x240]
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
lea ecx, [ebp - 0x30c]
call sym.IPSClientService.exe_public:_void___thiscall_CXmlNode::destructor_void_
lea ecx, [ebp - 0x2cc]
call sym.IPSClientService.exe_public:_void___thiscall_CConfigHelper::destructor_void_
cmp dword [ebp - 0x228], 8
jb 0x418a28
push dword [ebp - 0x23c]
call fcn.0040f3b0
add esp, 4
xor eax, eax
mov dword [ebp - 0x228], 7
cmp dword [ebp - 0x2a0], 8
mov dword [ebp - 0x22c], 0
mov word [ebp - 0x23c], ax
jb 0x418a5c
push dword [ebp - 0x2b4]
call fcn.0040f3b0
add esp, 4
xor eax, eax
mov dword [ebp - 0x2a0], 7
cmp dword [ebp - 0x288], 0x10
mov dword [ebp - 0x2a4], 0
mov word [ebp - 0x2b4], ax
jb 0x418a90
push dword [ebp - 0x29c]
call fcn.0040f3b0
add esp, 4
lea ecx, [ebp - 0xf7c]
mov dword [ebp - 0x288], 0xf
mov dword [ebp - 0x28c], 0
mov byte [ebp - 0x29c], 0
call sym.IPSClientService.exe_public:_void___thiscall_CUtilities::destructor_void_
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0041d103
mov esp, ebp
pop ebp
ret 4
cmp dword [ebp - 0x258], 0x10
lea eax, [ebp - 0x26c]
cmovae eax, edi
push eax
call fcn.0041bef0
mov edi, eax
add esp, 4
mov dword [ebp - 0xf8c], edi
test edi, edi
je 0x418d29
xor eax, eax
mov dword [ebp - 0x210], 7
push str.displayname
lea ecx, [ebp - 0xfa4]
mov dword [ebp - 0x214], 0
mov word [ebp - 0x224], ax
call fcn.00401de0
lea eax, [ebp - 0x224]
mov ecx, ebx
push eax
lea eax, [ebp - 0xfa4]
push eax
call sym.IPSClientService.exe_public:_void___thiscall_CXmlNode::GetAttributeValueW_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____
cmp dword [ebp - 0xf90], 8
jb 0x418b4c
push dword [ebp - 0xfa4]
call fcn.0040f3b0
add esp, 4
cmp dword [ebp - 0x210], 8
lea ecx, [ebp - 0x224]
mov eax, dword [edi]
cmovae ecx, dword [ebp - 0x224]
push ecx
mov ecx, edi
call dword [eax + 0xc]
xor eax, eax
mov dword [ebp - 0x270], 7
push 0x43af74
lea ecx, [ebp - 0xfa4]
mov dword [ebp - 0x274], 0
mov word [ebp - 0x284], ax
call fcn.00401de0
lea eax, [ebp - 0x284]
mov ecx, ebx
push eax
lea eax, [ebp - 0xfa4]
push eax
call sym.IPSClientService.exe_public:_void___thiscall_CXmlNode::GetAttributeValueW_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____
cmp dword [ebp - 0xf90], 8
jb 0x418bc1
push dword [ebp - 0xfa4]
call fcn.0040f3b0
add esp, 4
cmp dword [ebp - 0x270], 8
lea ecx, [ebp - 0x284]
mov eax, dword [edi]
cmovae ecx, dword [ebp - 0x284]
push ecx
mov ecx, edi
call dword [eax + 0x18]
push str.waittime
lea ecx, [ebp - 0xfa4]
mov dword [ebp - 0x240], 0xf
mov dword [ebp - 0x244], 0
mov byte [ebp - 0x254], 0
call fcn.00401d40
lea eax, [ebp - 0x254]
mov ecx, ebx
push eax
lea eax, [ebp - 0xfa4]
push eax
call sym.IPSClientService.exe_public:_void___thiscall_CXmlNode::GetAttributeValueA_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____
cmp dword [ebp - 0xf90], 0x10
jb 0x418c34
push dword [ebp - 0xfa4]
call fcn.0040f3b0
add esp, 4
mov ebx, dword [ebp - 0x240]
lea eax, [ebp - 0x254]
cmp ebx, 0x10
push 0
cmovae eax, dword [ebp - 0x254]
push 0x43b184
push eax
call fcn.00407d00
add esp, 0xc
test eax, eax
jne 0x418c6b
cmp dword [ebp - 0x244], eax
setne al
test eax, eax
je 0x418c8c
cmp ebx, 0x10
lea eax, [ebp - 0x254]
cmovae eax, dword [ebp - 0x254]
push eax
call fcn.004206ae
mov edx, dword [edi]
add esp, 4
mov ecx, edi
push eax
call dword [edx + 0x14]
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov edi, dword [ebp - 0xf84]
lea eax, [ebp - 0xf8c]
push eax
lea ecx, [edi + 0x26c]
call fcn.0041b1f0
cmp dword [ebp - 0x240], 0x10
jb 0x418cc1
push dword [ebp - 0x254]
call fcn.0040f3b0
add esp, 4
cmp dword [ebp - 0x270], 8
mov dword [ebp - 0x240], 0xf
mov dword [ebp - 0x244], 0
mov byte [ebp - 0x254], 0
jb 0x418cf3
push dword [ebp - 0x284]
call fcn.0040f3b0
add esp, 4
xor eax, eax
mov dword [ebp - 0x270], 7
cmp dword [ebp - 0x210], 8
mov dword [ebp - 0x274], 0
mov word [ebp - 0x284], ax
jb 0x418d2f
push dword [ebp - 0x224]
call fcn.0040f3b0
add esp, 4
jmp 0x418d2f
mov edi, dword [ebp - 0xf84]
cmp dword [ebp - 0x258], 0x10
jb 0x4189a8
push dword [ebp - 0x26c]
call fcn.0040f3b0
add esp, 4
jmp 0x4189a8