Function at 0x407150
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d0e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x524
mov eax, dword [0x463290]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
push ecx
call fcn.00412a30
mov edx, dword [ebp - 0x18]
mov esi, dword [sym.imp.MSVCRT.dll_wcscmp]
mov ecx, 0x82
xor eax, eax
lea edi, [ebp - 0x222]
mov word [ebp - 0x224], bx
push str.5.0.0.0
push edx
rep stosd dword es:[edi], eax
call esi
add esp, 0xc
test eax, eax
jl 0x4072fa
mov eax, dword [ebp - 0x18]
push str.6.0.0.0
push eax
call esi
add esp, 8
test eax, eax
jge 0x4072fa
mov ecx, dword [0x463290]
mov dword [ebp - 0x10], ecx
push str.option
push str.Software360360se5
lea edx, [ebp - 0x10]
push str._sdefault_s
push edx
mov byte [ebp - 4], 1
call fcn.00409c00
mov eax, dword [0x463290]
mov ecx, 0x4d6e34
add esp, 0x10
mov dword [ebp - 0x14], eax
test ecx, ecx
je 0x407259
mov edx, ecx
shr edx, 0x10
jne 0x407222
xor eax, eax
mov ax, cx
lea ecx, [ebp - 0x14]
push eax
call fcn.004050d0
jmp 0x407259
push 0x4d6e34
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x407259
push esi
lea ecx, [ebp - 0x14]
call fcn.00402e70
test eax, eax
je 0x407259
mov edi, dword [ebp - 0x14]
lea ecx, [esi + esi]
mov edx, ecx
mov esi, 0x4d6e34
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
push str.CurrentSkin
push ecx
push SysReAllocString
mov byte [ebp - 4], 2
call fcn.00410ec0
mov eax, dword [ebp - 0x14]
add esp, 0x10
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40729d
push SysReAllocString
push eax
push 0
lea edx, [ebp - 0x224]
push 0x104
push edx
call fcn.004074f0
mov eax, dword [ebp - 0x14]
mov edx, dword [0x463294]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4072c7
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4072c7
mov edx, dword [ebp - 0x14]
lea eax, [edx - 0xc]
push eax
call fcn.0044737a
add esp, 4
mov eax, dword [ebp - 0x10]
mov edx, dword [0x463294]
mov byte [ebp - 4], 0
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40733a
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40733a
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff4
push edx
call fcn.0044737a
add esp, 4
jmp 0x40733a
push 0x4d63fc
push ebx
push str.UseSkin
push str.Main
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x40733a
push 0x4d63fc
lea eax, [ebp - 0x224]
push 0x104
push eax
push 0x4d6e34
push str.Skin
push str.Path
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, 0xc2
xor eax, eax
lea edi, [ebp - 0x52f]
mov byte [ebp - 0x530], 0
rep stosd dword es:[edi], eax
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ecx, [ebp - 0x224]
stosw word es:[edi], ax
test ecx, ecx
stosb byte es:[edi], al
jne 0x40736c
mov dword [ebp - 0x10], 0
jmp 0x4073a6
lea edx, [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.004473e0
mov esi, esp
push 0
push 0
push edi
push esi
lea eax, [ebp - 0x224]
push 0xffffffffffffffff
push eax
push 0
push 0
mov byte [esi], 0
call ebx
mov dword [ebp - 0x10], esi
lea ecx, [ebp - 0x224]
test ecx, ecx
jne 0x4073b4
xor esi, esi
jmp 0x4073eb
lea edx, [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.004473e0
mov esi, esp
push 0
push 0
push edi
push esi
lea eax, [ebp - 0x224]
push 0xffffffffffffffff
push eax
push 0
push 0
mov byte [esi], 0
call ebx
mov edx, dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x530]
push 0x30b
push ecx
push edx
call edi
push eax
push esi
call fcn.004061a0
lea eax, [ebp - 0x530]
add esp, 0x10
test eax, eax
jne 0x40741b
xor esi, esi
jmp 0x407452
lea ecx, [ebp - 0x530]
push ecx
call edi
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.004473e0
mov edi, esp
push esi
push edi
lea edx, [ebp - 0x530]
push 0xffffffffffffffff
push edx
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, edi
mov ebx, dword [ebp + 8]
mov eax, dword [0x463290]
test esi, esi
mov dword [ebx], eax
je 0x4074a3
mov ecx, esi
shr ecx, 0x10
jne 0x407477
and esi, 0xffff
mov ecx, ebx
push esi
call fcn.004050d0
jmp 0x4074a3
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test edi, edi
je 0x4074a3
push edi
mov ecx, ebx
call fcn.00402e70
test eax, eax
je 0x4074a3
lea ecx, [edi + edi]
mov edi, dword [ebx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x18]
mov edx, dword [0x463294]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4074d0
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4074d0
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff4
push edx
call fcn.0044737a
add esp, 4
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x53c]
mov eax, ebx
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4