Function at 0x535666
Capabilities:
Check if file exists
Delete file
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575bf3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2dc
push edi
lea eax, [ebp - 0x228]
push eax
call fcn.00529440
add esp, 4
push 0x5cc624
lea ecx, [ebp - 0x228]
push ecx
call fcn.0054bea0
add esp, 8
lea edx, [ebp - 0x228]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x5356d2
cmp dword [ebp + 8], 0
je 0x5356cd
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x535ae6
lea ecx, [ebp - 0x23c]
call fcn.00566717
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
push 0
push 0x1041
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x23c]
call fcn.00566829
lea ecx, [ebp - 0x23c]
call fcn.00566a23
lea ecx, [ebp - 0x23c]
call fcn.00566a44
lea edx, [ebp - 0x228]
push edx
push 0x5cc63c
push 0x5cc640
push 0x5cc64c
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov dword [0x6858a0], 0
mov dword [0x6858b4], 1
mov dword [ebp - 0xdc], 0
jmp 0x535765
mov eax, dword [ebp - 0xdc]
add eax, 1
mov dword [ebp - 0xdc], eax
cmp dword [ebp - 0xdc], 0x10
jge 0x5357b1
push 0x200
call fcn.0054cfd4
add esp, 4
mov ecx, dword [ebp - 0xdc]
mov dword [ebp + ecx*4 - 0x124], eax
mov ecx, 0x80
xor eax, eax
mov edx, dword [ebp - 0xdc]
mov edi, dword [ebp + edx*4 - 0x124]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0xdc]
mov dword [ebp + eax*4 - 0xd8], 0
jmp 0x535756
mov dword [0x673a70], 0
mov ecx, 0x20
xor eax, eax
mov edi, 0x673a94
rep stosd dword es:[edi], eax
xor ecx, ecx
mov dword [0x673a84], ecx
mov dword [0x673a88], ecx
mov dword [0x673a8c], ecx
mov dword [0x673a90], ecx
xor edx, edx
mov dword [0x673a74], edx
mov dword [0x673a78], edx
mov dword [0x673a7c], edx
mov dword [0x673a80], edx
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0xd8]
push ecx
lea edx, [ebp - 0x124]
push edx
call fcn.0053e7cd
add esp, 0xc
mov dword [ebp - 0x22c], eax
mov eax, dword [0x6858a0]
push eax
push 0x5cc658
lea ecx, [ebp - 0x94]
push ecx
call fcn.0054c6e3
add esp, 0xc
lea edx, [ebp - 0x228]
push edx
lea eax, [ebp - 0x94]
push eax
push 0x5cc65c
push 0x5cc668
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov dword [ebp - 0xdc], 0
jmp 0x535870
mov ecx, dword [ebp - 0xdc]
add ecx, 1
mov dword [ebp - 0xdc], ecx
cmp dword [ebp - 0xdc], 0x10
jge 0x535891
mov edx, dword [ebp - 0xdc]
mov eax, dword [ebp + edx*4 - 0x124]
push eax
call fcn.0054ccb2
add esp, 4
jmp 0x535861
lea ecx, [ebp - 0x228]
push ecx
push 0
push str.HGROUPNUM
push 0x5cc680
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 0
jmp 0x5358d2
mov edx, dword [ebp - 0xe0]
add edx, 1
mov dword [ebp - 0xe0], edx
cmp dword [ebp - 0xe0], 3
jge 0x535abb
mov dword [ebp - 0x98], 0
jmp 0x5358fa
mov eax, dword [ebp - 0x98]
add eax, 1
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 0x98]
cmp ecx, dword [ebp - 0x10]
jge 0x535aa2
mov edx, dword [ebp - 0x98]
push edx
push 0x5cc68c
lea eax, [ebp - 0x264]
push eax
call fcn.0054c6e3
add esp, 0xc
lea ecx, [ebp - 0x228]
push ecx
push 0
lea edx, [ebp - 0x264]
push edx
push 0x5cc694
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x240], eax
mov eax, dword [ebp - 0x98]
push eax
push 0x5cc6a0
lea ecx, [ebp - 0x264]
push ecx
call fcn.0054c6e3
add esp, 0xc
mov edx, dword [ebp - 0xe0]
mov dword [ebp - 0x2e8], edx
cmp dword [ebp - 0x2e8], 0
je 0x535983
cmp dword [ebp - 0x2e8], 1
je 0x5359a7
jmp 0x535a16
lea eax, [ebp - 0x228]
push eax
push 0
lea ecx, [ebp - 0x264]
push ecx
push 0x5cc6b0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x5359a7
jmp 0x5358eb
cmp dword [ebp - 0x240], 0
je 0x535a16
mov edx, dword [ebp - 0x98]
push edx
push str.H__d1_PortName
lea eax, [ebp - 0x264]
push eax
call fcn.0054c6e3
add esp, 0xc
lea ecx, [ebp - 0x228]
push ecx
push 0x80
lea edx, [ebp - 0x2e4]
push edx
push 0x6858f4
lea eax, [ebp - 0x264]
push eax
push 0x5cc6cc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x535a16
push str.ROOT_HUB
lea ecx, [ebp - 0x2e4]
push ecx
call fcn.0054cb20
add esp, 8
test eax, eax
je 0x535a16
jmp 0x5358eb
mov dword [ebp - 0x244], 0
mov dword [ebp - 0xdc], 0
jmp 0x535a3b
mov edx, dword [ebp - 0xdc]
add edx, 1
mov dword [ebp - 0xdc], edx
mov eax, dword [ebp - 0xdc]
cmp eax, dword [ebp - 0xe4]
jge 0x535a6f
mov ecx, dword [ebp - 0x98]
add ecx, 1
mov edx, dword [ebp - 0xdc]
cmp dword [edx*4 + 0x673a94], ecx
jne 0x535a6d
mov dword [ebp - 0x244], 1
jmp 0x535a6f
jmp 0x535a2c
cmp dword [ebp - 0x244], 0
jne 0x535a9d
mov eax, dword [ebp - 0x98]
add eax, 1
mov ecx, dword [ebp - 0xe4]
mov dword [ecx*4 + 0x673a94], eax
mov edx, dword [ebp - 0xe4]
add edx, 1
mov dword [ebp - 0xe4], edx
jmp 0x5358eb
cmp dword [ebp - 0xe0], 0
jne 0x535ab6
mov eax, dword [ebp - 0xe4]
mov dword [0x673a70], eax
jmp 0x5358c3
lea ecx, [ebp - 0x228]
push ecx
call fcn.00534978
add esp, 4
mov dword [0x6858b4], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x23c]
call fcn.0056676c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret