Function at 0x4a05c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf7cc
mov eax, dword fs:[0]
push eax
sub esp, 0x5bc
mov eax, dword [0x50cc94]
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 eax, dword [ebp + 8]
xor esi, esi
test eax, eax
je 0x4a09a3
push 0x1ea
push eax
lea eax, [ebp - 0x5b0]
push eax
call fcn.004b37a5
xor ecx, ecx
push 0xa
lea eax, [ebp - 0x1a0]
mov word [ebp - 0x1dc], cx
mov ecx, dword [ebp + 0xc]
push eax
xor edx, edx
push ecx
mov word [ebp - 0x1a0], dx
call fcn.004b5287
add esp, 0x18
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a0636
lea edi, [ebp - 0x5b0]
sub eax, edx
add edi, 0xfffffffe
lea esp, [esp]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4a0650
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ecx
mov esi, esp
mov dword [ebp - 0x5c8], esp
mov dword [ebp - 0x5c0], esi
call fcn.004a1286
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4a0695
push 0x80004005
call fcn.00421000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, 0x4dec30
mov dword [ebp - 4], 0
test ecx, 0xffff0000
jne 0x4a079f
mov edx, ecx
movzx edi, dx
push edi
call fcn.004a91be
mov ebx, eax
test ebx, ebx
je 0x4a07b9
mov eax, edi
shr eax, 4
inc eax
movzx ecx, ax
push 6
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4a07b9
push edi
push eax
push ebx
call fcn.00421708
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x4a07b9
mov eax, dword [esi]
movzx edi, word [ebx]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, edi
or eax, ecx
jge 0x4a0721
push edi
mov ecx, esi
call fcn.00421527
movzx eax, word [ebx]
mov edx, dword [esi]
add ebx, 2
mov dword [ebp - 0x5b8], edx
cmp eax, 0xffffffff
jne 0x4a073e
push ebx
call fcn.004af97a
add esp, 4
inc eax
add eax, eax
push eax
lea ecx, [edi + edi]
push ebx
push ecx
mov dword [ebp - 0x5b4], ecx
mov ecx, dword [ebp - 0x5b8]
push ecx
call fcn.004af400
add esp, 0x10
cmp eax, 0x50
ja case.0x4a08b8.1
movzx edx, byte [eax + 0x4a09d4]
jmp dword [edx*4 + 0x4a09c4]
call fcn.004a17ee
test edi, edi
jl 0x4a0795
mov eax, dword [esi]
cmp edi, dword [eax - 8]
jg 0x4a0795
mov edx, dword [ebp - 0x5b4]
mov dword [eax - 0xc], edi
mov eax, dword [esi]
xor ecx, ecx
mov word [edx + eax], cx
jmp 0x4a07b9
push 0x80070057
call fcn.00421000
push 0x4dec30
call fcn.004af97a
add esp, 4
push eax
push 0x4dec30
mov ecx, esi
call fcn.0042423a
push ecx
mov dword [ebp - 4], 1
mov ebx, esp
mov dword [ebp - 0x5c0], esp
mov dword [ebp - 0x5c4], ebx
call fcn.004a1286
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4a07e9
push 0x80004005
call fcn.00421000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebx], eax
mov ecx, str.MsgBox.ini
mov byte [ebp - 4], 2
test ecx, 0xffff0000
jne 0x4a08ea
mov edx, ecx
movzx esi, dx
push esi
call fcn.004a91be
mov edi, eax
test edi, edi
je 0x4a0904
mov eax, esi
shr eax, 4
inc eax
movzx ecx, ax
push 6
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4a0904
push esi
push eax
push edi
call fcn.00421708
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4a0904
mov eax, dword [ebx]
movzx esi, word [edi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, esi
or eax, ecx
jge 0x4a0872
push esi
mov ecx, ebx
call fcn.00421527
movzx eax, word [edi]
mov edx, dword [ebx]
add edi, 2
mov dword [ebp - 0x5b4], edx
cmp eax, 0xffffffff
jne 0x4a088f
push edi
call fcn.004af97a
add esp, 4
inc eax
add eax, eax
push eax
lea ecx, [esi + esi]
push edi
push ecx
mov dword [ebp - 0x5b8], ecx
mov ecx, dword [ebp - 0x5b4]
push ecx
call fcn.004af400
add esp, 0x10
cmp eax, 0x50
ja case.0x4a08b8.1
movzx edx, byte [eax + 0x4a0a38]
jmp dword [edx*4 + 0x4a0a28]
call fcn.004a1826
test esi, esi
jl 0x4a0795
mov eax, dword [ebx]
cmp esi, dword [eax - 8]
jg 0x4a0795
mov edx, dword [ebp - 0x5b8]
mov dword [eax - 0xc], esi
mov eax, dword [ebx]
xor ecx, ecx
mov word [edx + eax], cx
jmp 0x4a0904
push str.MsgBox.ini
call fcn.004af97a
add esp, 4
push eax
push str.MsgBox.ini
mov ecx, ebx
call fcn.0042423a
mov byte [ebp - 4], 3
mov eax, dword [0x5123b4]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x5c4], esp
mov esi, esp
push eax
call fcn.004242ab
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea edi, [ebp - 0x5bc]
mov dword [ebp - 4], 0xffffffff
call fcn.004687d0
mov ecx, dword [ebp - 0x5bc]
add esp, 0xc
push ecx
push 0x63
xor eax, eax
lea edx, [ebp - 0xd8]
push edx
mov word [ebp - 0xd8], ax
push 0x4e0608
lea eax, [ebp - 0x5b0]
push eax
push str.DoNotAsk
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x10
lea ecx, [ebp - 0xd8]
push 0
push ecx
call fcn.004b32d9
mov esi, eax
mov eax, dword [ebp - 0x5bc]
add eax, 0xfffffff0
add esp, 0xc
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4a09a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
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.004af011
mov esp, ebp
pop ebp
ret