Function at 0x40a390
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x577698]
push ebx
xor ebx, ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_LoadImageW]
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x40a3d8
push 0x80
push ebx
push ebx
push ebx
push 0xcb25
push eax
call edi
mov esi, eax
cmp esi, ebx
jne 0x40a3ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x57768c], eax
mov eax, dword [0x577698]
mov dword [ebp - 4], esi
jmp 0x40a3e2
mov dword [0x57768c], 0x57
mov dword [ebp - 8], ebx
cmp eax, ebx
je 0x40a414
push 0x80
push ebx
push ebx
push ebx
push 0xcb26
push eax
call edi
mov esi, eax
cmp esi, ebx
jne 0x40a40a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x57768c], eax
mov eax, dword [0x577698]
mov dword [ebp - 8], esi
jmp 0x40a41e
mov dword [0x57768c], 0x57
mov dword [ebp - 0xc], ebx
cmp eax, ebx
je 0x40a450
push 0x80
push ebx
push ebx
push ebx
push 0xcb27
push eax
call edi
mov esi, eax
cmp esi, ebx
jne 0x40a446
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x57768c], eax
mov eax, dword [0x577698]
mov dword [ebp - 0xc], esi
jmp 0x40a45a
mov dword [0x57768c], 0x57
mov dword [ebp - 0x10], ebx
cmp eax, ebx
je 0x40a487
push 0x80
push ebx
push ebx
push ebx
push 0xcb28
push eax
call edi
mov esi, eax
cmp esi, ebx
jne 0x40a482
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x57768c], eax
mov dword [ebp - 0x10], esi
jmp 0x40a491
mov dword [0x57768c], 0x57
mov edi, dword [ebp + 8]
lea esi, [edi + 0x50]
push esi
mov ecx, str.BrCcAdvnc.sdd
call fcn.00470370
push str.AdvCloseBtn
lea eax, [edi + 0x60]
call fcn.005080c0
mov eax, dword [esi + 0x10]
cmp eax, ebx
jne 0x40a4bb
mov eax, 0x54ee24
mov dword [ebp - 0x18], ebx
cmp dword [esi + 8], ebx
jle 0x40a4ed
cmp eax, ebx
je 0x40a4ed
cmp word [eax], bx
je 0x40a4ed
mov ecx, dword [esi + 4]
cmp ecx, ebx
jne 0x40a4d8
mov ecx, 0x54ee24
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push str.PosiX
push eax
call ebx
mov dword [ebp - 0x18], eax
jmp 0x40a4f3
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [esi + 0x10]
test ecx, ecx
jne 0x40a4ff
mov ecx, 0x54ee24
cmp dword [esi + 8], 0
mov dword [ebp - 0x14], 0
jle 0x40a530
test ecx, ecx
je 0x40a530
cmp word [ecx], 0
je 0x40a530
mov eax, dword [esi + 4]
test eax, eax
jne 0x40a522
mov eax, 0x54ee24
push eax
push 0
push str.PosiY
push ecx
call ebx
mov dword [ebp - 0x14], eax
mov ecx, dword [esi + 0x10]
test ecx, ecx
jne 0x40a53c
mov ecx, 0x54ee24
xor edi, edi
cmp dword [esi + 8], edi
jle 0x40a565
test ecx, ecx
je 0x40a565
cmp word [ecx], di
je 0x40a565
mov eax, dword [esi + 4]
test eax, eax
jne 0x40a558
mov eax, 0x54ee24
push eax
push 0
push str.Width
push ecx
call ebx
mov edi, eax
mov ecx, dword [esi + 0x10]
test ecx, ecx
jne 0x40a571
mov ecx, 0x54ee24
xor ebx, ebx
cmp dword [esi + 8], ebx
jle 0x40a59e
test ecx, ecx
je 0x40a59e
cmp word [ecx], bx
je 0x40a59e
mov eax, dword [esi + 4]
test eax, eax
jne 0x40a58d
mov eax, 0x54ee24
push eax
push 0
push str.Height
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov dword [esi + 0x30c], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x310], ecx
push 0x80ff
lea ecx, [ebp - 0x24]
mov dword [esi + 0x318], eax
xor eax, eax
push ecx
mov ecx, 0x5776a0
mov dword [esi + 0x314], edx
mov byte [esi + 0x2fd], 1
mov dword [esi + 0x360], eax
mov dword [esi + 0x364], eax
mov dword [esi + 0x368], edi
mov dword [esi + 0x36c], ebx
mov dword [esi + 0x370], eax
mov dword [esi + 0x374], eax
mov dword [esi + 0x378], edi
mov dword [esi + 0x37c], ebx
call fcn.00471480
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x40a61d
mov eax, 0x54ee24
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push ebx
mov ebx, dword [ebp + 0x10]
push edi
push edx
mov edx, dword [ebp + 0xc]
push ecx
push 0
push eax
push 0x17d8
push edx
mov eax, 0x10000000
lea ecx, [esi + 0x138]
call fcn.0043b8a0
test eax, eax
je 0x40a654
mov dword [esi + 0x2f8], 0
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x40a664
push eax
call fcn.0051ebab
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc