Function at 0x420290
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450944
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x472554]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x40], ecx
call fcn.004300b0
push eax
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov dword [ebp - 4], 0
push str.cfgdghwtool.ini
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::append_wchar_t_const__]
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP80.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
push 0
push str.DesktopShow
push str.common
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
setne al
mov byte [ebp - 0x31], al
movzx ecx, byte [ebp - 0x31]
test ecx, ecx
je 0x42045d
mov edx, dword [ebp - 0x40]
cmp dword [edx + 0x344], 0
jg 0x42032b
mov eax, dword [ebp - 0x40]
cmp dword [eax + 0x340], 0
jle 0x42045d
mov ecx, dword [ebp - 0x40]
cmp dword [ecx + 0x3a4], 0
jne 0x420434
push 0x168
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x3c], 0
je 0x420362
mov ecx, dword [ebp - 0x3c]
call fcn.00418130
mov dword [ebp - 0x44], eax
jmp 0x420369
mov dword [ebp - 0x44], 0
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x38], edx
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x38]
mov dword [eax + 0x3a4], ecx
mov edx, dword [ebp - 0x40]
add edx, 0x2c
push edx
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 0x3a4]
call fcn.00418d90
mov ecx, dword [ebp - 0x40]
mov ecx, dword [ecx + 0x3a4]
call fcn.00418c30
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 0x340]
push eax
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + 0x344]
push edx
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 0x3a4]
call fcn.00419410
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + 0x348]
push edx
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 0x34c]
push ecx
mov edx, dword [ebp - 0x40]
mov ecx, dword [edx + 0x3a4]
call fcn.00419440
mov ecx, dword [ebp - 0x40]
call dword [sym.imp.duilib.dll_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const]
push eax
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 0x3a4]
call fcn.00418db0
push 1
mov ecx, dword [ebp - 0x40]
mov ecx, dword [ecx + 0x3a4]
call fcn.00418e70
push 5
mov edx, dword [ebp - 0x40]
mov ecx, dword [edx + 0x3a4]
add ecx, 4
call fcn.0041bcd0
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 0x3a4]
add ecx, 4
call fcn.0041bcb0
jmp 0x42045b
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + 0x3a4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x42045b
push 1
mov ecx, dword [ebp - 0x40]
mov ecx, dword [ecx + 0x3a4]
call fcn.00418e70
jmp 0x420479
mov edx, dword [ebp - 0x40]
cmp dword [edx + 0x3a4], 0
je 0x420479
push 0
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 0x3a4]
call fcn.00418e70
call fcn.004206e0
mov ecx, eax
call fcn.0042f6a0
mov byte [ebp - 0xd], al
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
jne 0x42050d
mov edx, dword [ebp - 0x40]
cmp dword [edx + 0x340], 0
jne 0x4204a8
mov eax, dword [ebp - 0x40]
cmp dword [eax + 0x344], 0
je 0x42050d
push 1
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + 0x38c]
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 0x38c]
mov edx, dword [edx]
mov eax, dword [edx + 0xcc]
call eax
movzx ecx, byte [ebp - 0x31]
neg ecx
sbb ecx, ecx
add ecx, 1
mov byte [ebp - 0x33], cl
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 0x38c]
mov ecx, dword [ebp - 0x40]
mov ecx, dword [ecx + 0x38c]
mov edx, dword [eax]
mov eax, dword [edx + 0xc8]
call eax
mov byte [ebp - 0x32], al
movzx ecx, byte [ebp - 0x33]
movzx edx, byte [ebp - 0x32]
cmp ecx, edx
je 0x42050b
call fcn.00420670
mov ecx, eax
call fcn.0042fb50
jmp 0x42052d
push 0
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 0x38c]
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 0x38c]
mov edx, dword [ecx]
mov ecx, eax
mov eax, dword [edx + 0xcc]
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043dcfe
mov esp, ebp
pop ebp
ret