Function at 0x4dc240
Capabilities:
Read .ini file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a8de0
mov eax, dword fs:[0]
push eax
mov eax, 0x2260
call fcn.0056e430
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x226c], ebx
mov dword [ebp - 0x2268], eax
push ecx
push str.CBaseInfoCtrl::GetIniFileBuffer
lea ecx, [ebp - 0x2258]
mov dword [ebp - 4], 1
call fcn.0040a480
mov byte [ebp - 4], 2
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4dc2df
test byte [ecx + 0x1c], 1
je 0x4dc2df
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5d8b60
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x37
call fcn.00401840
add esp, 0xc
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.00571c00
push 0x2000
lea eax, [ebp - 0x2220]
push 0
push eax
call fcn.00571c00
mov eax, dword [0x5d93d8]
add esp, 0x18
mov ecx, dword [0x6184f0]
mov dword [ebp - 0x18], eax
mov ax, word [0x5d93dc]
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x220]
push eax
mov dword [ebp - 0x2260], 0xa
mov ecx, dword [ecx + 0x1c]
push str.TEMPPATH
call fcn.004f65f0
push str.INSDRV.INI
lea eax, [ebp - 0x220]
push 0x104
push eax
call fcn.00574a48
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x20
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x220]
push eax
push 0x1000
lea eax, [ebp - 0x2220]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
call fcn.00550b4e
mov ecx, eax
test ecx, ecx
je 0x4dc559
mov eax, dword [ecx]
push 2
push 0x1000
call dword [eax]
test eax, eax
je 0x4dc563
cmp dword [eax + 8], 0x1000
lea ecx, [eax + 0x10]
mov dword [ebp - 0x225c], ecx
jl 0x4dc568
xor eax, eax
mov dword [ecx - 0xc], 0x1000
mov word [ecx + 0x2000], ax
mov edx, 0x1000
lea eax, [ebp - 0x2220]
push 0x1000
push eax
call fcn.00403ed0
add esp, 8
push 0xa
push 0
lea ecx, [ebp - 0x225c]
mov byte [ebp - 4], 3
call fcn.0043e030
push 0xa
push 0x3b
lea ecx, [ebp - 0x225c]
call fcn.0043e030
mov esi, dword [ebp - 0x225c]
cmp dword [esi - 0xc], 0
jge 0x4dc416
or eax, 0xffffffff
jmp 0x4dc430
lea eax, [ebp - 0x18]
push eax
push esi
call fcn.00570be3
add esp, 8
test eax, eax
jne 0x4dc42c
or eax, 0xffffffff
jmp 0x4dc430
sub eax, esi
sar eax, 1
xor ecx, ecx
lea edi, [esi - 0x10]
test eax, eax
cmovns ecx, eax
mov dword [ebp - 0x2264], ecx
cmp ecx, dword [esi - 0xc]
jl 0x4dc453
mov ecx, edi
call fcn.00403af0
add eax, 0x10
mov dword [ebx], eax
jmp 0x4dc47d
mov ecx, dword [edi]
test ecx, ecx
je 0x4dc462
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x4dc46e
call fcn.00550b4e
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
push dword [ebp - 0x2264]
mov ecx, ebx
push esi
call fcn.00403d50
lea ecx, [ebp - 0x2260]
mov dword [ebp - 0x2268], 3
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4dc490
sub ecx, edx
lea eax, [ebp - 0x2260]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.00405fe0
mov byte [ebp - 0x2254], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4dc4f7
test byte [ecx + 0x1c], 1
je 0x4dc4f7
cmp dword [0x608f68], 8
mov eax, 0x608f54
push dword [ebx]
cmovae eax, dword [0x608f54]
mov edx, 0x5d8b60
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x38
call fcn.00405920
add esp, 0x10
or esi, 0xffffffff
mov byte [ebp - 4], 2
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4dc512
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x2258]
call fcn.0040a570
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x4dc539
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.004013a0
call fcn.00403ec0
push 0x80070057
call fcn.004013a0
int3