Function at 0x499780
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56fb4d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c4
mov eax, dword [0x5e2320]
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 [sym.imp.dnutility.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_utility::ufile::appdataDir_void_]
lea eax, [ebp - 0x258]
push eax
call ebx
push 0x58d370
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2a0]
call fcn.0041def0
push 0x58b344
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x288]
call fcn.0041def0
push str.appconfig.ini
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x270]
call fcn.0041def0
add esp, 0x10
cmp dword [ebp - 0x274], 8
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x49981f
push dword [ebp - 0x288]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x274], 7
mov dword [ebp - 0x278], 0
mov word [ebp - 0x288], ax
cmp dword [ebp - 0x28c], 8
jb 0x499850
push dword [ebp - 0x2a0]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x28c], 7
mov dword [ebp - 0x290], 0
mov word [ebp - 0x2a0], ax
mov byte [ebp - 4], 6
cmp dword [ebp - 0x244], 8
jb 0x499885
push dword [ebp - 0x258]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x244], 7
cmp dword [ebp - 0x25c], 8
mov word [ebp - 0x258], ax
lea eax, [ebp - 0x270]
cmovae eax, dword [ebp - 0x270]
push eax
push 0x50
lea eax, [ebp - 0x210]
mov dword [ebp - 0x248], 0
push eax
push 0x590060
push str.firststart
push 0x58f2e8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.MSVCR120.dll__wtoi]
mov edi, eax
add esp, 4
cmp edi, 1
jne 0x4999f6
lea eax, [ebp - 0x2d0]
push eax
call ebx
push 0x58d370
mov edx, eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x228]
call fcn.0041def0
push 0x58b344
mov edx, eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x2b8]
call fcn.0041def0
push str.appconfig.ini
mov edx, eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x240]
call fcn.0041def0
add esp, 0x10
cmp dword [ebp - 0x2a4], 8
jb 0x499952
push dword [ebp - 0x2b8]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x2a4], 7
cmp dword [ebp - 0x214], 8
mov dword [ebp - 0x2a8], 0
mov word [ebp - 0x2b8], ax
jb 0x499983
push dword [ebp - 0x228]
call esi
add esp, 4
xor eax, eax
mov byte [ebp - 4], 6
cmp dword [ebp - 0x2bc], 8
mov dword [ebp - 0x214], 7
mov dword [ebp - 0x218], 0
mov word [ebp - 0x228], ax
jb 0x4999b8
push dword [ebp - 0x2d0]
call esi
add esp, 4
cmp dword [ebp - 0x22c], 8
lea eax, [ebp - 0x240]
cmovae eax, dword [ebp - 0x240]
push eax
push 0x58f33c
push str.firststart
push 0x58f2e8
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp dword [ebp - 0x22c], 8
jb 0x4999f6
push dword [ebp - 0x240]
call esi
add esp, 4
push edi
push str.is_first_start__d
push 0x8b
push str.view::AppModel::isFirstStart
call dword [sym.imp.dnutility.dll_void___cdecl_utility_log_char_const___int__wchar_t_const__]
add esp, 0x10
cmp edi, 1
sete bl
cmp dword [ebp - 0x25c], 8
jb 0x499a29
push dword [ebp - 0x270]
call esi
add esp, 4
mov al, bl
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.005600c0
mov esp, ebp
pop ebp
ret