Function at 0x40d130
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
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 0x40d178
push 0x80
push ebx
push ebx
push ebx
push 0xcb29
push eax
call edi
mov esi, eax
cmp esi, ebx
jne 0x40d16e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x57768c], eax
mov eax, dword [0x577698]
mov dword [ebp - 4], esi
jmp 0x40d182
mov dword [0x57768c], 0x57
mov dword [ebp - 8], ebx
cmp eax, ebx
je 0x40d1b4
push 0x80
push ebx
push ebx
push ebx
push 0xcb2a
push eax
call edi
mov esi, eax
cmp esi, ebx
jne 0x40d1aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x57768c], eax
mov eax, dword [0x577698]
mov dword [ebp - 8], esi
jmp 0x40d1be
mov dword [0x57768c], 0x57
mov dword [ebp - 0xc], ebx
cmp eax, ebx
je 0x40d1eb
push 0x80
push ebx
push ebx
push ebx
push 0xcb2b
push eax
call edi
mov esi, eax
cmp esi, ebx
jne 0x40d1e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x57768c], eax
mov dword [ebp - 0xc], esi
jmp 0x40d1f5
mov dword [0x57768c], 0x57
mov esi, dword [ebp + 8]
lea edi, [esi + 0x1fec]
push edi
mov ecx, str.BrCcAdvnc.sdd
call fcn.00470370
push str.AdvHelpBtn
lea eax, [esi + 0x1ffc]
call fcn.005080c0
mov eax, dword [edi + 0x10]
cmp eax, ebx
jne 0x40d225
mov eax, 0x54ee24
mov dword [ebp - 0x14], ebx
cmp dword [edi + 8], ebx
jle 0x40d257
cmp eax, ebx
je 0x40d257
cmp word [eax], bx
je 0x40d257
mov ecx, dword [edi + 4]
cmp ecx, ebx
jne 0x40d242
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 - 0x14], eax
jmp 0x40d25d
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [edi + 0x10]
test ecx, ecx
jne 0x40d269
mov ecx, 0x54ee24
cmp dword [edi + 8], 0
mov dword [ebp - 0x10], 0
jle 0x40d29a
test ecx, ecx
je 0x40d29a
cmp word [ecx], 0
je 0x40d29a
mov eax, dword [edi + 4]
test eax, eax
jne 0x40d28c
mov eax, 0x54ee24
push eax
push 0
push str.PosiY
push ecx
call ebx
mov dword [ebp - 0x10], eax
mov ecx, dword [edi + 0x10]
test ecx, ecx
jne 0x40d2a6
mov ecx, 0x54ee24
xor esi, esi
cmp dword [edi + 8], esi
jle 0x40d2cf
test ecx, ecx
je 0x40d2cf
cmp word [ecx], si
je 0x40d2cf
mov eax, dword [edi + 4]
test eax, eax
jne 0x40d2c2
mov eax, 0x54ee24
push eax
push 0
push str.Width
push ecx
call ebx
mov esi, eax
mov ecx, dword [edi + 0x10]
test ecx, ecx
jne 0x40d2db
mov ecx, 0x54ee24
xor ebx, ebx
cmp dword [edi + 8], ebx
jle 0x40d308
test ecx, ecx
je 0x40d308
cmp word [ecx], bx
je 0x40d308
mov eax, dword [edi + 4]
test eax, eax
jne 0x40d2f7
mov eax, 0x54ee24
push eax
push 0
push str.Height
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
add edi, 0x22b8
mov dword [edi + 0x1d4], eax
mov dword [edi + 0x1e0], eax
xor eax, eax
mov dword [edi + 0x228], eax
mov dword [edi + 0x22c], eax
mov dword [edi + 0x238], eax
mov dword [edi + 0x23c], eax
push 0x80ea
lea eax, [ebp - 0x20]
mov dword [edi + 0x1d8], ecx
push eax
mov ecx, 0x5776a0
mov dword [edi + 0x1dc], edx
mov byte [edi + 0x1c5], 1
mov dword [edi + 0x230], esi
mov dword [edi + 0x234], ebx
mov dword [edi + 0x240], esi
mov dword [edi + 0x244], ebx
call fcn.00471480
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x40d38a
mov eax, 0x54ee24
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push ecx
push edx
push 0
push eax
mov eax, dword [ebp + 0xc]
push 0x17d9
push eax
mov eax, 0x10000000
mov ecx, edi
call fcn.0043b8a0
mov esi, eax
test esi, esi
je 0x40d3bf
mov dword [edi + 0x1c0], 0
push esi
push edi
push 0x832c
push ebx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [0x5776b8]
and eax, 0x3ff
dec eax
cmp eax, 0x59
ja case.0x40d3eb.2
movzx ecx, byte [eax + 0x40d450]
jmp dword [ecx*4 + 0x40d448]
mov byte [ebp + 0x10], 1
jmp 0x40d3fc
mov byte [ebp + 0x10], 0
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push edx
add eax, 0x1fc4
push ecx
mov ecx, 0x40
mov dword [ebp + 8], eax
call fcn.00511ef0
mov edi, dword [ebp - 0x20]
test edi, edi
jne 0x40d425
mov edi, 0x54ee24
mov ecx, dword [ebp + 8]
call fcn.00511f60
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x40d43d
push eax
call fcn.0051ebab
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc