Function at 0x4e8770
Capabilities:
Get file attributes
Read .ini file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x570200
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x5bda40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x78], 0
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x10]
call fcn.00410610
mov byte [ebp - 4], 6
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp - 0x14]
call fcn.004068e0
mov byte [ebp - 4], 7
push 1
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00406c40
mov dword [ebp - 0x80], eax
push 0x58a708
mov edx, dword [ebp - 0x80]
push edx
call fcn.00406fe0
add esp, 8
mov byte [ebp - 0x35], al
lea ecx, [ebp - 0x3c]
call fcn.004072c0
movzx eax, byte [ebp - 0x35]
test eax, eax
je 0x4e8807
push 0x58a70c
lea ecx, [ebp - 0x14]
call fcn.00406a60
push ecx
mov ecx, esp
mov dword [ebp - 0x40], esp
lea edx, [ebp - 0x14]
push edx
call fcn.004068e0
mov dword [ebp - 0x84], eax
call fcn.0050ba00
add esp, 4
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0
je 0x4e8a4a
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
call fcn.004068e0
mov byte [ebp - 4], 8
lea ecx, [ebp + 0x18]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00406a40
push 0x58a710
lea ecx, [ebp - 0x18]
call fcn.00406a60
push ecx
mov ecx, esp
mov dword [ebp - 0x44], esp
lea edx, [ebp - 0x18]
push edx
call fcn.004068e0
mov dword [ebp - 0x8c], eax
call fcn.0050ba00
add esp, 4
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0
je 0x4e897e
lea ecx, [ebp - 0x24]
call fcn.00410610
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x20]
call fcn.00410610
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x18]
call fcn.004072e0
push eax
push 0x104
push 0x104
lea ecx, [ebp - 0x20]
call fcn.004070d0
push eax
push 0x58a71c
push 0x58a720
push 0x58a728
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
mov dword [ebp - 0x1c], eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x24]
call fcn.00407110
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x20]
call fcn.00406980
lea ecx, [ebp - 0x20]
call fcn.00406bb0
lea ecx, [ebp + 0x10]
push ecx
lea edx, [ebp - 0x20]
push edx
call fcn.00406fc0
add esp, 8
movzx eax, al
test eax, eax
je 0x4e8955
lea ecx, [ebp - 0x18]
call fcn.004072e0
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
and eax, 0xfffffffe
push eax
lea ecx, [ebp - 0x18]
call fcn.004072e0
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
lea ecx, [ebp - 0x18]
call fcn.004072e0
push eax
lea ecx, [ebp + 0x10]
call fcn.004072e0
push eax
push 0x58a74c
push 0x58a754
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringW]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00406980
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x20]
call fcn.004072c0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x24]
call fcn.004072c0
jmp 0x4e8a3e
lea ecx, [ebp - 0x18]
call fcn.004072e0
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
and eax, 0xfffffffe
push eax
lea ecx, [ebp - 0x18]
call fcn.004072e0
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x48], esp
lea edx, [ebp + 0x14]
push edx
call fcn.004068e0
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x98], eax
mov byte [ebp - 4], 0xb
push ecx
mov ecx, esp
mov dword [ebp - 0x4c], esp
lea edx, [ebp + 0x10]
push edx
call fcn.004068e0
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xa0], eax
mov byte [ebp - 4], 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0x50], esp
lea edx, [ebp + 0x18]
push edx
call fcn.004068e0
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xa8], eax
mov byte [ebp - 4], 0xd
push ecx
mov ecx, esp
mov dword [ebp - 0x54], esp
lea edx, [ebp - 0x14]
push edx
call fcn.004068e0
mov dword [ebp - 0xac], eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x7c]
call fcn.004e8ea0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.00406980
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x18]
call fcn.004072c0
lea ecx, [ebp - 0x10]
call fcn.004070f0
movzx ecx, al
test ecx, ecx
je 0x4e8add
lea edx, [ebp - 0x10]
push edx
mov ecx, dword [ebp + 8]
call fcn.004068e0
mov eax, dword [ebp - 0x78]
or eax, 1
mov dword [ebp - 0x78], eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x14]
call fcn.004072c0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x10]
call fcn.004072c0
mov byte [ebp - 4], 4
lea ecx, [ebp + 0xc]
call fcn.004072c0
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x10]
call fcn.004072c0
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x14]
call fcn.004072c0
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x18]
call fcn.004072c0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x1c]
call fcn.004072c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x20]
call fcn.004072c0
mov eax, dword [ebp + 8]
jmp 0x4e8e82
lea ecx, [ebp + 0x20]
call fcn.004070f0
movzx ecx, al
test ecx, ecx
je 0x4e8b70
lea edx, [ebp - 0x10]
push edx
mov ecx, dword [ebp + 8]
call fcn.004068e0
mov eax, dword [ebp - 0x78]
or eax, 1
mov dword [ebp - 0x78], eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x14]
call fcn.004072c0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x10]
call fcn.004072c0
mov byte [ebp - 4], 4
lea ecx, [ebp + 0xc]
call fcn.004072c0
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x10]
call fcn.004072c0
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x14]
call fcn.004072c0
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x18]
call fcn.004072c0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x1c]
call fcn.004072c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x20]
call fcn.004072c0
mov eax, dword [ebp + 8]
jmp 0x4e8e82
lea ecx, [ebp + 0x20]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00406980
push 1
lea edx, [ebp - 0x5c]
push edx
lea ecx, [ebp - 0x14]
call fcn.00406c40
mov dword [ebp - 0xb0], eax
push 0x58a778
mov eax, dword [ebp - 0xb0]
push eax
call fcn.00406fe0
add esp, 8
mov byte [ebp - 0x55], al
lea ecx, [ebp - 0x5c]
call fcn.004072c0
movzx ecx, byte [ebp - 0x55]
test ecx, ecx
je 0x4e8bc4
push 0x58a77c
lea ecx, [ebp - 0x14]
call fcn.00406a60
push ecx
mov ecx, esp
mov dword [ebp - 0x60], esp
lea edx, [ebp - 0x14]
push edx
call fcn.004068e0
mov dword [ebp - 0xb4], eax
call fcn.0050ba00
add esp, 4
mov dword [ebp - 0xb8], eax
cmp dword [ebp - 0xb8], 0
je 0x4e8e07
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x28]
call fcn.004068e0
mov byte [ebp - 4], 0xe
lea ecx, [ebp + 0x18]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00406a40
push 0x58a780
lea ecx, [ebp - 0x28]
call fcn.00406a60
push ecx
mov ecx, esp
mov dword [ebp - 0x64], esp
lea edx, [ebp - 0x28]
push edx
call fcn.004068e0
mov dword [ebp - 0xbc], eax
call fcn.0050ba00
add esp, 4
mov dword [ebp - 0xc0], eax
cmp dword [ebp - 0xc0], 0
je 0x4e8d3b
lea ecx, [ebp - 0x34]
call fcn.00410610
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x30]
call fcn.00410610
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x28]
call fcn.004072e0
push eax
push 0x104
push 0x104
lea ecx, [ebp - 0x30]
call fcn.004070d0
push eax
push 0x58a78c
push 0x58a790
push 0x58a798
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
mov dword [ebp - 0x2c], eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x34]
call fcn.00407110
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x30]
call fcn.00406980
lea ecx, [ebp - 0x30]
call fcn.00406bb0
lea ecx, [ebp + 0x10]
push ecx
lea edx, [ebp - 0x30]
push edx
call fcn.00406fc0
add esp, 8
movzx eax, al
test eax, eax
je 0x4e8d12
lea ecx, [ebp - 0x28]
call fcn.004072e0
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
and eax, 0xfffffffe
push eax
lea ecx, [ebp - 0x28]
call fcn.004072e0
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
lea ecx, [ebp - 0x28]
call fcn.004072e0
push eax
lea ecx, [ebp + 0x10]
call fcn.004072e0
push eax
push 0x58a7bc
push 0x58a7c4
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringW]
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00406980
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x30]
call fcn.004072c0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x34]
call fcn.004072c0
jmp 0x4e8dfb
lea ecx, [ebp - 0x28]
call fcn.004072e0
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
and eax, 0xfffffffe
push eax
lea ecx, [ebp - 0x28]
call fcn.004072e0
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x68], esp
lea edx, [ebp + 0x14]
push edx
call fcn.004068e0
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0xc8], eax
mov byte [ebp - 4], 0x11
push ecx
mov ecx, esp
mov dword [ebp - 0x6c], esp
lea edx, [ebp + 0x10]
push edx
call fcn.004068e0
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xd0], eax
mov byte [ebp - 4], 0x12
push ecx
mov ecx, esp
mov dword [ebp - 0x70], esp
lea edx, [ebp + 0x18]
push edx
call fcn.004068e0
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0xd8], eax
mov byte [ebp - 4], 0x13
push ecx
mov ecx, esp
mov dword [ebp - 0x74], esp
lea edx, [ebp - 0x14]
push edx
call fcn.004068e0
mov dword [ebp - 0xdc], eax
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x7c]
call fcn.004e8ea0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x10]
call fcn.00406980
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x28]
call fcn.004072c0
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004068e0
mov edx, dword [ebp - 0x78]
or edx, 1
mov dword [ebp - 0x78], edx
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x14]
call fcn.004072c0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x10]
call fcn.004072c0
mov byte [ebp - 4], 4
lea ecx, [ebp + 0xc]
call fcn.004072c0
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x10]
call fcn.004072c0
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x14]
call fcn.004072c0
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x18]
call fcn.004072c0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x1c]
call fcn.004072c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x20]
call fcn.004072c0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x1c