Function at 0x1004e560
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1011d796
mov eax, dword fs:[0]
push eax
sub esp, 0x630
mov eax, dword [0x101684dc]
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]
mov dword [ebp - 0x63c], ebx
test ebx, ebx
je 0x1004e8ff
push 0x500000
call fcn.1006809c
push 0x500000
push 0
push eax
mov dword [ebp - 0x630], eax
call fcn.10094c40
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.10094c40
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.10094c40
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10094c40
mov eax, dword [0x1016cea4]
add esp, 0x34
test al, 1
jne 0x1004e637
or eax, 1
mov dword [0x1016cea4], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x10124000
mov dword [0x1016ce98], 0x10127950
mov dword [0x1016ce9c], eax
mov byte [0x1016cea0], 0
call fcn.10067ff4
mov eax, dword [0x1016cea4]
add esp, 4
test al, 2
jne 0x1004e693
or eax, 2
mov dword [0x1016cea8], 0x10127968
mov dword [0x1016cea4], eax
xor eax, eax
push 0x10124030
mov dword [0x1016ceac], 0x1016ce98
mov dword [0x1016cebc], 2
mov dword [0x1016ceb4], 0
mov dword [0x1016ceb8], 0
mov dword [0x1016cec0], eax
mov dword [0x1016ceb0], 0x1016cea8
call fcn.10067ff4
add esp, 4
mov eax, dword [0x1016cea8]
mov ecx, 0x1016cea8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x62c], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x62c]
test ebx, 0xffff0000
jne 0x1004e6c9
movzx eax, bx
push eax
call fcn.1001eae0
jmp 0x1004e6cf
push ebx
call fcn.10027e10
mov esi, dword [ebp - 0x62c]
mov ebx, str.updatecfg.ini
push 0xe
sub ebx, esi
mov dword [ebp - 4], 1
push str.updatecfg.ini
mov edi, dword [esi - 0xc]
sar ebx, 1
mov dword [ebp - 0x638], edi
call fcn.100b9c57
mov edx, eax
mov ecx, SysReAllocString
sub ecx, edx
mov dword [ebp - 0x634], edx
add esp, 8
cmp ecx, edi
jl 0x1004e920
add edi, edx
js 0x1004e92a
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x1004e745
push edi
lea ecx, [ebp - 0x62c]
call fcn.10005400
mov esi, dword [ebp - 0x62c]
mov edx, dword [ebp - 0x634]
mov eax, dword [ebp - 0x638]
lea ecx, [esi + ebx*2]
cmp ebx, eax
jbe 0x1004e757
mov ecx, str.updatecfg.ini
push edx
push ecx
push edx
lea eax, [esi + eax*2]
push eax
call fcn.10004630
add esp, 0x10
cmp edi, dword [esi - 8]
jg 0x1004e920
push esi
push 0x280000
push dword [ebp - 0x630]
xor eax, eax
mov dword [esi - 0xc], edi
push eax
push eax
push eax
mov word [esi + edi*2], ax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor ebx, ebx
mov dword [ebp - 0x634], eax
xor edi, edi
mov dword [ebp - 0x62c], ebx
test eax, eax
je 0x1004e8d2
nop word [eax + eax]
mov eax, dword [ebp - 0x630]
movzx eax, word [eax + ebx*2]
test ax, ax
jne 0x1004e8b6
lea eax, [edi + edi]
cmp eax, 0x208
jae 0x1004e91b
push esi
xor ecx, ecx
xor edi, edi
push 0x104
mov word [ebp + eax - 0x420], cx
lea eax, [ebp - 0x628]
push eax
push edi
push 0x10134290
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x628], di
je 0x1004e8bf
mov ecx, dword [ebp - 0x63c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004e813
sub ecx, edx
sar ecx, 1
and ecx, 0x7fffffff
cmp ecx, 0x7ffffffe
jbe 0x1004e83b
xor eax, eax
mov word [ebp - 0x218], ax
jmp 0x1004e886
lea edx, [ebp - 0x218]
mov edi, 0x82
lea ebx, [ecx - 0x82]
mov eax, edx
mov ecx, dword [ebp - 0x63c]
sub ecx, eax
lea eax, [ebx + edi]
test eax, eax
je 0x1004e871
movzx eax, word [ecx + edx]
test ax, ax
je 0x1004e871
mov word [edx], ax
add edx, 2
sub edi, 1
jne 0x1004e856
mov ebx, dword [ebp - 0x62c]
lea eax, [edx - 2]
test edi, edi
cmovne eax, edx
xor ecx, ecx
mov edi, ecx
mov word [eax], cx
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push esi
lea eax, [ebp - 0x218]
push eax
push 0x10134290
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x1004e8bf
mov word [ebp + edi*2 - 0x420], ax
inc edi
inc ebx
mov dword [ebp - 0x62c], ebx
cmp ebx, dword [ebp - 0x634]
jb 0x1004e7b0
push dword [ebp - 0x630]
call fcn.100680a5
add esp, 4
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1004e8ff
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
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.10067be8
mov esp, ebp
pop ebp
ret
call fcn.10068397
push 0x80070057
call fcn.10004440
push 0x80070057
call fcn.10004440
int3