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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575d53
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x144
push edi
mov dword [ebp - 0x24], 0xc8
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x134], 0
lea ecx, [ebp - 0x20]
call fcn.00566717
mov dword [ebp - 4], 0
lea eax, [ebp - 0x12c]
push eax
call fcn.00529440
add esp, 4
push str.UFD_MPSync.bin
lea ecx, [ebp - 0x12c]
push ecx
call fcn.0054bea0
add esp, 8
lea edx, [ebp - 0x12c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x5397ed
mov eax, dword [ebp - 0x134]
or ah, 0x10
mov dword [ebp - 0x134], eax
push 0
mov ecx, dword [ebp - 0x134]
push ecx
lea edx, [ebp - 0x12c]
push edx
lea ecx, [ebp - 0x20]
call fcn.00566829
test eax, eax
jne 0x539846
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x24]
sub eax, 1
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jg 0x539844
mov dword [ebp - 0x144], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0056676c
mov eax, dword [ebp - 0x144]
jmp 0x5399d2
jmp 0x5397ed
mov edi, dword [ebp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 9
mov dword [ebp - 0x138], ecx
mov ecx, dword [ebp - 0x138]
push ecx
call fcn.0054cfd4
add esp, 4
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
jne 0x53989d
mov dword [ebp - 0x148], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0056676c
mov eax, dword [ebp - 0x148]
jmp 0x5399d2
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp - 0x138]
push eax
mov ecx, dword [ebp - 0x130]
push ecx
push 0x685934
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x28], 0
jmp 0x5398db
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov dword [ebp - 0x28], ecx
mov edi, dword [ebp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xffffffff
cmp dword [ebp - 0x28], ecx
jge 0x53996c
mov edx, dword [ebp + 0x14]
add edx, dword [ebp - 0x28]
mov al, byte [edx]
mov byte [ebp - 0x150], al
cmp byte [ebp - 0x150], 0x43
je 0x539911
cmp byte [ebp - 0x150], 0x63
je 0x539911
jmp 0x539913
jmp 0x53995f
mov ecx, dword [ebp - 0x130]
add ecx, dword [ebp - 0x28]
movsx edx, byte [ecx]
mov eax, dword [ebp + 0x10]
add eax, dword [ebp - 0x28]
movsx ecx, byte [eax]
cmp edx, ecx
jle 0x539935
mov dword [ebp - 0x10], 1
jmp 0x53995f
mov edx, dword [ebp - 0x130]
add edx, dword [ebp - 0x28]
movsx eax, byte [edx]
mov ecx, dword [ebp + 0x10]
add ecx, dword [ebp - 0x28]
movsx edx, byte [ecx]
cmp eax, edx
jge 0x53995f
mov dword [ebp - 0x13c], 1
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0x10], 0
je 0x539967
jmp 0x53996c
jmp 0x5398d2
cmp dword [ebp - 0x130], 0
je 0x539984
mov eax, dword [ebp - 0x130]
push eax
call fcn.0054ccb2
add esp, 4
cmp dword [ebp - 0x13c], 0
je 0x5399a9
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov dword [ebp - 0x140], eax
lea ecx, [ebp - 0x20]
call fcn.00566a44
mov edx, dword [ebp - 0x140]
mov dword [ebp - 0x14c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0056676c
mov eax, dword [ebp - 0x14c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret