Function at 0x40bd50
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x458010
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x471920]
xor eax, esp
mov dword [esp + 0x6c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x471920]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x94]
mov esi, ecx
mov dword [esp + 0x14], esi
call fcn.0041c08e
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40bdae
push 0x80004005
call fcn.00402660
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
cmp esi, ebx
mov dword [esp + 0x8c], ebx
jne 0x40bdd5
mov word [0x4767a4], bp
jmp 0x40bf7f
cmp ebp, 0x13ba
jbe 0x40bf3f
cmp ebp, dword [0x472dc4]
ja 0x40bf3f
lea ecx, [esp + 0x20]
push ecx
mov esi, 0x4768b4
mov dword [0x472dc0], ebp
call fcn.00401420
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40be25
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x40be4b
push 0x104
lea ecx, [esp + 0x1c]
call fcn.00402ba0
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push ebx
push 0x104
push edi
push ebp
push ecx
call dword [sym.imp.USER32.dll_GetMenuStringW]
cmp edi, ebx
jne 0x40be66
xor eax, eax
jmp 0x40be85
mov eax, edi
lea edx, [eax + 2]
jmp 0x40be70
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40be70
sub eax, edx
sar eax, 1
js 0x40bf35
cmp eax, dword [edi - 8]
jg 0x40bf35
mov dword [edi - 0xc], eax
mov word [edi + eax*2], bx
call fcn.0041c08e
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40beaf
push 0x80004005
call fcn.00402660
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
push str..lng
push edi
lea ecx, [esp + 0x24]
push str.Language_s_s
push ecx
mov byte [esp + 0x9c], 1
call fcn.00402e70
mov esi, dword [esp + 0x2c]
mov eax, dword [esi - 0xc]
add esp, 0x10
push eax
push esi
mov ecx, 0x4768b4
call fcn.00407380
mov edx, dword [0x4768b4]
push edx
push ebx
push str.Language
push str.Language
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov word [0x4767a4], ax
lea eax, [esi - 0x10]
mov byte [esp + 0x8c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bf60
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40bf60
push 0x80070057
call fcn.00402660
push ebx
push 0x4622b0
mov ecx, 0x4768b4
mov word [0x4767a4], bx
call fcn.004029b0
mov dword [0x472dc0], 0x13ba
mov ecx, dword [0x472dc0]
mov edx, dword [0x472dc4]
mov eax, dword [esp + 0x14]
push ebx
push ecx
push edx
push 0x13ba
push eax
call dword [sym.imp.USER32.dll_CheckMenuRadioItem]
call fcn.0040d030
mov eax, dword [0x4767a8]
cmp eax, ebx
je 0x40bf9a
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [0x4767a8], ebx
push 0x5c
lea ecx, [esp + 0x28]
push ebx
push ecx
call fcn.004406c0
mov edx, dword [0x4768b4]
add esp, 0xc
push edx
push 0x20
lea eax, [esp + 0x48]
push eax
push ebx
push str.FontName
push str.Language
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x40c036
mov ecx, dword [0x4768b4]
push ecx
push ebx
push str.FontSize
push str.Language
mov byte [esp + 0x4b], 1
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, ebx
mov dword [esp + 0x24], eax
je 0x40c026
push ebx
push ebx
push ebx
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateICW]
push 0x48
mov esi, eax
push 0x5a
push esi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edx, dword [esp + 0x28]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
neg eax
push esi
mov dword [esp + 0x28], eax
call dword [sym.imp.GDI32.dll_DeleteDC]
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov dword [0x4767a8], eax
lea eax, [edi - 0x10]
mov dword [esp + 0x8c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c05d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.0043e923
add esp, 0x7c
ret