Function at 0x6c9fa7d0
Capabilities:
Change the wallpaper
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
mov edi, eax
push esi
push ebx
sub esp, 0x2c8
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [esp + 0x24], eax
mov eax, dword [eax + 0x14]
mov dword [esp + 0x38], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp], 0xb
call ebx
sub esp, 4
mov dword [esp + 0x28], eax
mov dword [esp], 0xc
call ebx
sub esp, 4
cmp dword [edi + 0x10], 0xff9b
mov dword [esp + 0x2c], eax
jg 0x6c9faf80
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
cmp eax, 0x20
je 0x6c9fafc0
cmp eax, 0x40
je 0x6c9faf63
cmp eax, 0x10
mov ecx, 0x7f01
mov edx, 0
mov eax, 0
cmove edx, ecx
mov dword [esp + 0x34], edx
mov edx, 0x7f01
cmove eax, edx
mov word [esp + 0x1c], ax
mov dword [esp], 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
sub esp, 4
mov ebx, eax
lea ebp, [esp + 0xd4]
mov dword [esp + 0xc], 0
mov dword [esp + 0xd4], 0x1f4
mov dword [esp + 8], ebp
mov dword [esp + 4], 0
mov dword [esp], 0x29
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov ecx, 0x17
sub esp, 0x10
lea edi, [esp + 0x78]
lea esi, [esp + 0x26c]
rep movsd dword es:[edi], dword [esi]
lea esi, [esp + 0x78]
mov dword [esp], esi
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
sub esp, 4
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.GDI32.dll_SelectObject]
sub esp, 8
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
sub esp, 8
mov dword [esp], ebx
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0x34
mov dword [esp + 4], str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov edx, 0x4ec4ec4f
sub esp, 0x10
mov ecx, dword [esp + 0xd4]
mov esi, dword [esp + 0x24]
lea edi, [esp + 0x4c]
mov eax, ecx
sar ecx, 0x1f
imul edx
sar edx, 3
sub edx, ecx
lea eax, [edx + 1]
mov edx, eax
shr edx, 0x1f
add eax, edx
sar eax, 1
mov dword [reloc.GDI32.dll_CreateSolidBrush], eax
mov eax, dword [esp + 0x78]
mov dword [reloc.GDI32.dll_CreateRectRgn], eax
mov eax, dword [esi + 0xc]
mov dword [esp], eax
call fcn.6c9a2480
mov dword [esp + 0x24], esi
add eax, 1
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 4], 0x6ca36a41
mov dword [esp + 8], eax
mov dword [esp], 0x6ca36a47
call fcn.6c99af00
mov dword [esp], edi
mov dword [esp + 8], 0x10
mov esi, eax
mov dword [esp + 4], 0
call fcn.6c9a2160
mov dword [esp + 0xc], edi
mov dword [esp], ebx
mov dword [esp + 0x10], 0x2c00
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], esi
call dword [sym.imp.USER32.dll_DrawTextW]
sub esp, 0x14
add dword [esp + 0x4c], 0x10
add dword [esp + 0x54], 0x12
add dword [esp + 0x50], 0x10
add dword [esp + 0x58], 0x12
mov dword [esp], ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
sub esp, 4
mov dword [esp], esi
call fcn.6c99edc0
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x4c]
mov edi, dword [esp + 0x58]
mov ebx, eax
sub ebx, edx
sub edi, dword [esp + 0x50]
add edi, 0x20
cmp word [esp + 0x1c], 0
lea ebx, [ebx + 0x20]
mov dword [esp + 0x20], edi
jne 0x6c9faf00
mov eax, dword [esp + 0x24]
imul eax, dword [eax + 0x10], 0x64
lea edx, [eax + 0xb]
add eax, 0xc
cmp ebx, edx
cmovle ebx, eax
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x5e]
mov esi, dword [eax + 8]
mov dword [esp], edx
mov dword [esp + 8], 0x1a
mov dword [esp + 4], 0
call fcn.6c9a2160
mov eax, dword [esp + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [esp + 0x5e], 0xffff0001
mov dword [esp + 0x6a], 0xc00848
add eax, 0x2a
mov dword [esp + 0x70], 0
mov word [esp + 0x76], ax
mov eax, dword [reloc.GDI32.dll_CreateSolidBrush]
mov word [esp + 0x74], bx
mov dword [esp + 8], eax
movsx eax, bx
mov dword [esp + 4], 4
mov dword [esp], eax
call edi
sub esp, 0xc
mov word [esp + 0x74], ax
mov eax, dword [reloc.GDI32.dll_CreateRectRgn]
mov dword [esp + 4], 8
mov dword [esp + 8], eax
movsx eax, word [esp + 0x76]
mov dword [esp], eax
call edi
sub esp, 0xc
mov dword [esp + 4], 0x14
mov dword [esp], 1
mov word [esp + 0x76], ax
call fcn.6c99ed10
mov edi, eax
test eax, eax
je 0x6c9faee7
mov ecx, 0x1a
lea edx, [esp + 0x5e]
call fcn.6c9fa3d0
test eax, eax
je 0x6c9faf40
xor eax, eax
mov ecx, 2
lea edx, [esp + 0x42]
mov word [esp + 0x42], ax
mov eax, edi
call fcn.6c9fa3d0
test eax, eax
je 0x6c9faf40
mov ecx, 2
lea edx, [esp + 0x42]
mov eax, edi
call fcn.6c9fa3d0
test eax, eax
je 0x6c9faf40
test esi, esi
mov eax, 0x6ca36a40
cmove esi, eax
mov dword [esp], esi
call fcn.6c9a2480
mov dword [esp + 8], esi
add eax, 1
mov dword [esp + 4], 0x6ca36a41
mov dword [esp + 0xc], eax
mov dword [esp], 0x6ca36a47
call fcn.6c99af00
mov esi, eax
test eax, eax
je 0x6c9faf40
cmp word [eax], 0
je 0x6c9fb0c1
xor edx, edx
jmp 0x6c9fab72
mov edx, eax
lea eax, [edx + 1]
cmp word [esi + eax*2], 0
jne 0x6c9fab70
lea ecx, [edx + edx + 4]
mov edx, esi
mov eax, edi
call fcn.6c9fa3d0
mov dword [esp], esi
mov dword [esp + 0x3c], eax
call fcn.6c99edc0
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x6c9faf40
mov dword [esp + 0xd4], 0x154
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebp
mov dword [esp + 4], 0
mov dword [esp], 0x29
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
sub esp, 0x10
mov dword [esp], 0
call dword [sym.imp.USER32.dll_GetDC]
sub esp, 4
mov esi, eax
mov dword [esp + 4], 0x5a
mov dword [esp], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
sub esp, 8
mov ecx, eax
test eax, eax
mov eax, 0x48
cmove ecx, eax
imul eax, dword [esp + 0x1ec], 0xffffffb8
mov dword [esp + 4], esi
mov dword [esp], 0
cdq
idiv ecx
mov word [esp + 0x42], ax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, 2
mov eax, edi
sub esp, 8
lea edx, [esp + 0x42]
call fcn.6c9fa3d0
test eax, eax
je 0x6c9fafa0
mov eax, dword [esp + 0x1fc]
mov ecx, 2
lea edx, [esp + 0x42]
mov word [esp + 0x42], ax
mov eax, edi
call fcn.6c9fa3d0
test eax, eax
je 0x6c9fafa0
movzx eax, byte [esp + 0x200]
mov ecx, 1
lea edx, [esp + 0x41]
mov byte [esp + 0x41], al
mov eax, edi
call fcn.6c9fa3d0
test eax, eax
je 0x6c9fafa0
movzx eax, byte [esp + 0x203]
mov ecx, 1
lea edx, [esp + 0x41]
mov byte [esp + 0x41], al
mov eax, edi
call fcn.6c9fa3d0
test eax, eax
je 0x6c9fafa0
lea esi, [esp + 0x208]
mov dword [esp], esi
call fcn.6c9a2480
mov dword [esp + 8], esi
add eax, 1
mov dword [esp + 4], 0x6ca36a41
mov dword [esp + 0xc], eax
mov dword [esp], 0x6ca36a47
call fcn.6c99af00
mov esi, eax
test eax, eax
je 0x6c9fafa0
cmp word [eax], 0
je 0x6c9fb0cb
xor edx, edx
jmp 0x6c9facf2
mov edx, eax
lea eax, [edx + 1]
cmp word [esi + eax*2], 0
jne 0x6c9facf0
lea ecx, [edx + edx + 4]
mov edx, esi
mov eax, edi
call fcn.6c9fa3d0
mov dword [esp], esi
mov ebp, eax
call fcn.6c99edc0
test ebp, ebp
je 0x6c9fafa0
cmp word [esp + 0x1c], 0
je 0x6c9fad73
mov eax, dword [esp + 0x34]
mov dword [esp + 0x14], 0
mov ecx, 0x50020003
mov edx, 0x82
mov dword [esp + 0x10], 0xfffffffe
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], 0x14
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
mov dword [esp], 0x14
mov dword [esp + 8], eax
mov eax, edi
call fcn.6c9fa4c0
test eax, eax
je 0x6c9faf40
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x18], 0
mov edx, dword [esp + 0x4c]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], ecx
mov dword [esp], edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x10], 0xffffffff
sub eax, ecx
mov ecx, 0x50022080
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x54]
sub eax, edx
mov edx, 0x82
mov dword [esp + 8], eax
mov eax, edi
call fcn.6c9fa4c0
test eax, eax
je 0x6c9faf40
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x10]
imul esi, eax, 0xffffff9c
add esi, ebx
mov ebx, dword [esp + 0x20]
add ebx, 4
mov dword [esp + 0x28], ebx
mov ebx, eax
sub ebx, 1
mov ecx, ebx
js 0x6c9fafe4
mov ebx, dword [esp + 0x30]
lea eax, [eax + eax*2]
xor ebp, ebp
mov dword [esp + 0x1c], edi
mov word [esp + 0x20], bp
mov edi, ecx
lea ebx, [ebx + eax*4 - 0xc]
jmp 0x6c9fae9b
lea edx, [esp + 0x48]
lea eax, [esp + 0x44]
call fcn.6c9fa2d0
test eax, eax
je 0x6c9faec4
cmp ebp, 1
mov edx, dword [esp + 0x1c]
sbb ecx, ecx
movzx edx, word [edx + 0x10]
add ecx, 0x50030001
cmp ebp, 1
mov dword [esp + 0x14], eax
sbb ebp, ebp
mov dword [esp], esi
mov eax, dword [esp + 0x1c]
add ebp, 0x50010001
test dx, dx
mov dword [esp + 0x18], 0
cmovne ecx, ebp
mov ebp, dword [esp + 0x28]
add edx, 0x64
mov dword [esp + 0xc], 0x1a
mov dword [esp + 0x10], edx
mov edx, pe_nt_image_headers32
mov dword [esp + 8], 0x58
mov dword [esp + 4], ebp
call fcn.6c9fa4c0
test eax, eax
je 0x6c9faec4
sub edi, 1
add esi, 0x64
sub ebx, 0xc
cmp edi, 0xffffffff
je 0x6c9fafe0
xor ebp, ebp
test byte [ebx], 1
je 0x6c9faeb9
add word [esp + 0x20], 1
movzx eax, word [esp + 0x20]
cmp ax, 1
sete al
movzx eax, al
mov ebp, eax
mov ecx, dword [ebx + 8]
test ecx, ecx
jne 0x6c9fae10
mov edi, dword [esp + 0x1c]
mov eax, dword [edi + 4]
mov dword [esp], eax
call fcn.6c99edc0
mov dword [esp], edi
call fcn.6c99edc0
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call fcn.6c99edc0
add esp, 0x2c8
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
add ecx, 0x14
add eax, ecx
add edx, ecx
add ebx, ecx
mov dword [esp + 0x54], eax
imul eax, dword [esi + 0x10], 0x64
mov dword [esp + 0x4c], edx
lea edx, [eax + 0xb]
add eax, 0xc
cmp ebx, edx
cmovle ebx, eax
mov eax, dword [esp + 0x2c]
lea edx, [eax + 0x27]
add eax, 0x28
cmp edi, edx
cmovg eax, edi
mov dword [esp + 0x20], eax
jmp 0x6c9faa24
mov eax, dword [edi + 4]
mov dword [esp], eax
call fcn.6c99edc0
mov dword [esp], edi
call fcn.6c99edc0
add esp, 0x2c8
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0x7f04
mov dword [esp + 0x34], 0x7f04
mov word [esp + 0x1c], ax
jmp 0x6c9fa86c
mov dword [esp + 4], 0xff9b
mov dword [esp], str.Number_of_butons_exceeds_limit_of__d
call fcn.6c9427b0
add esp, 0x2c8
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [edi + 4]
mov dword [esp], eax
call fcn.6c99edc0
mov dword [esp], edi
call fcn.6c99edc0
jmp 0x6c9faee7
mov eax, 0x7f03
mov dword [esp + 0x34], 0x7f03
mov word [esp + 0x1c], ax
jmp 0x6c9fa86c
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call fcn.6c99edc0
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 4]
test eax, eax
je 0x6c9fb004
mov eax, dword [eax + 0x90]
mov eax, dword [eax + 4]
mov esi, dword [esp + 0x24]
mov dword [esp + 0xc], 0x6c9fa000
mov dword [esp + 8], eax
mov dword [esp + 0x10], esi
mov eax, dword [edi]
mov dword [esp], 0
mov dword [esp + 4], eax
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
sub esp, 0x14
cmp eax, 0x63
jle 0x6c9fb060
mov edx, dword [esi + 0x10]
lea ecx, [eax - 0x63]
cmp ecx, edx
jg 0x6c9fb097
sub edx, eax
lea eax, [edx + edx*2 + 0x129]
mov edx, dword [esi + 0x14]
mov esi, dword [esp + 0x38]
lea eax, [edx + eax*4]
mov eax, dword [eax + 4]
mov dword [esi], eax
xor eax, eax
jmp 0x6c9fb071
cmp eax, 0x14
jne 0x6c9fb0aa
mov eax, dword [esp + 0x38]
mov dword [eax], 0xffffffff
xor eax, eax
mov edx, dword [edi + 4]
mov dword [esp + 0x1c], eax
mov dword [esp], edx
call fcn.6c99edc0
mov dword [esp], edi
call fcn.6c99edc0
mov eax, dword [esp + 0x1c]
add esp, 0x2c8
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.An_unknown_error_occured
call fcn.6c9427b0
mov eax, 0xffffffff
jmp 0x6c9fb071
test eax, eax
jne 0x6c9fb0d5
mov dword [esp], str.Invalid_parent_window_handle
call fcn.6c9427b0
mov eax, 0xffffffff
jmp 0x6c9fb071
mov ecx, 2
jmp 0x6c9fab80
mov ecx, 2
jmp 0x6c9fad00
cmp eax, 0xffffffff
jne 0x6c9fb0ed
mov dword [esp], str.The_message_box_encountered_an_error.
call fcn.6c9427b0
mov eax, 0xffffffff
jmp 0x6c9fb071
lea edx, [eax - 0x32]
cmp edx, 2
ja 0x6c9fb10b
mov dword [esp], str.Invalid_message_box_pointer_in_dialog_procedure
call fcn.6c9427b0
mov eax, 0xffffffff
jmp 0x6c9fb071
cmp eax, 0x35
jne 0x6c9fb097
mov dword [esp], str.Couldnt_find_dialog_control_of_the_default_enter_key_button
call fcn.6c9427b0
mov eax, 0xffffffff
jmp 0x6c9fb071