Function at 0x401755
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41068c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x454
mov dword [ebp - 0x45c], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, 0x417af0
call fcn.00403b65
push eax
lea ecx, [ebp - 0x18]
call fcn.0040101a
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00401200
test eax, eax
jne 0x4017d3
mov ecx, dword [ebp + 8]
push ecx
mov ecx, 0x417af0
call fcn.00403b65
push eax
push str.FAILURE:_Failed_creating_DC_for__s
call fcn.00409a98
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004010d9
jmp 0x401dc8
mov edx, 1
test edx, edx
je 0x401db9
push 0x130
push 0
lea eax, [ebp - 0x14c]
push eax
call fcn.0040b250
add esp, 0xc
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov dword [edx], 0x10
mov eax, dword [ebp - 0x1c]
mov dword [eax + 4], 0x40011b
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 8], 0
lea edx, [ebp - 0x13c]
mov dword [ebp - 0x158], edx
mov eax, dword [ebp - 0x158]
mov dword [eax], 0x20
mov ecx, dword [ebp - 0x158]
add ecx, 0x1c
mov dword [ebp - 0x150], ecx
lea edx, [ebp - 0x1c]
sub edx, dword [ebp - 0x150]
mov eax, dword [ebp - 0x158]
mov dword [eax + 0x18], edx
mov ecx, dword [ebp - 0x158]
push ecx
push 0x120
mov edx, dword [ebp - 0x1c]
push edx
push 0x30
push 0x7306
lea ecx, [ebp - 0x18]
call fcn.00402ad0
push eax
call dword [sym.imp.GDI32.dll_ExtEscape]
mov dword [ebp - 0x154], eax
cmp dword [ebp - 0x154], 0
jne 0x4018a7
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x158]
mov edx, dword [ecx + 4]
push edx
push str.Get_message_code__u_on_device_index__u
call fcn.00409a98
add esp, 0xc
jmp 0x4018b9
push str.No_more_message_or_CWDDECI_QUERYLASTDRIVERMESSAGE_failed
call fcn.00409a98
add esp, 4
jmp 0x401db9
mov eax, dword [ebp - 0x158]
mov ecx, dword [eax + 4]
and ecx, 0xf000
cmp ecx, 0x3000
jne 0x401902
mov edx, dword [ebp - 0x158]
mov eax, dword [edx + 4]
and eax, 0xfff
mov dword [ebp - 0x15c], eax
mov ecx, dword [ebp - 0x150]
push ecx
mov edx, dword [ebp - 0x15c]
push edx
mov ecx, dword [ebp - 0x45c]
call fcn.004014af
jmp 0x4017d3
mov eax, dword [ebp - 0x158]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x460], ecx
cmp dword [ebp - 0x460], 0x12002
ja 0x40195e
cmp dword [ebp - 0x460], 0x12002
je 0x401b55
cmp dword [ebp - 0x460], 0x10001
je 0x401a29
cmp dword [ebp - 0x460], 0x11001
je 0x401993
cmp dword [ebp - 0x460], 0x12001
je 0x401abf
jmp 0x401da7
cmp dword [ebp - 0x460], 0x12003
je 0x401beb
cmp dword [ebp - 0x460], 0x12004
je 0x401ccd
cmp dword [ebp - 0x460], 0x12005
je 0x401d60
jmp 0x401da7
push 0x10
push 0
lea edx, [ebp - 0x16c]
push edx
call fcn.0040b250
add esp, 0xc
push 0x44
push 0
lea eax, [ebp - 0x1b0]
push eax
call fcn.0040b250
add esp, 0xc
mov dword [ebp - 0x1b0], 0x44
push str.Got_ATI_MESSAGECODE_DAL_ERROR_POWERPLAYSETFAILURE
call fcn.00409a98
add esp, 4
lea ecx, [ebp - 0x16c]
push ecx
lea edx, [ebp - 0x1b0]
push edx
push 0
push 0
push 0x20
push 0
push 0
push 0
push str.atiprbxx.exe_6
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401a17
mov eax, dword [ebp - 0x168]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x16c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401a24
push str.FAILURE:_Failed_to_CreateProcess_for_atiprbxx.exe_6
call fcn.00409a98
add esp, 4
jmp 0x401db4
push 0x10
push 0
lea edx, [ebp - 0x1c0]
push edx
call fcn.0040b250
add esp, 0xc
push 0x44
push 0
lea eax, [ebp - 0x204]
push eax
call fcn.0040b250
add esp, 0xc
mov dword [ebp - 0x204], 0x44
push str.Got_ATI_MESSAGECODE_DAL_GENERAL_POWERPLAYAUTOADJUSTBPP
call fcn.00409a98
add esp, 4
lea ecx, [ebp - 0x1c0]
push ecx
lea edx, [ebp - 0x204]
push edx
push 0
push 0
push 0x20
push 0
push 0
push 0
push str.atiprbxx.exe_7
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401aad
mov eax, dword [ebp - 0x1bc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x1c0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401aba
push str.FAILURE:_Failed_to_CreateProcess_for_atiprbxx.exe_7
call fcn.00409a98
add esp, 4
jmp 0x401db4
push str.Got_ATI_MESSAGECODE_DAL_ACTION_POWERPLAYSET16BPP
call fcn.00409a98
add esp, 4
push 0x94
push 0
lea edx, [ebp - 0x298]
push edx
call fcn.0040b250
add esp, 0xc
mov word [ebp - 0x274], 0x94
mov dword [ebp - 0x230], 0x10
mov dword [ebp - 0x270], 0x40000
push 2
lea eax, [ebp - 0x298]
push eax
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsA]
test eax, eax
jne 0x401b43
push 0
lea ecx, [ebp - 0x298]
push ecx
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsA]
test eax, eax
jne 0x401b34
push 0x4132ec
call fcn.00409a98
add esp, 4
jmp 0x401b41
push 0x413300
call fcn.00409a98
add esp, 4
jmp 0x401b50
push 0x41331c
call fcn.00409a98
add esp, 4
jmp 0x401db4
push str.Got_ATI_MESSAGECODE_DAL_ACTION_POWERPLAYSET32BPP
call fcn.00409a98
add esp, 4
push 0x94
push 0
lea edx, [ebp - 0x32c]
push edx
call fcn.0040b250
add esp, 0xc
mov word [ebp - 0x308], 0x94
mov dword [ebp - 0x2c4], 0x20
mov dword [ebp - 0x304], 0x40000
push 2
lea eax, [ebp - 0x32c]
push eax
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsA]
test eax, eax
jne 0x401bd9
push 0
lea ecx, [ebp - 0x32c]
push ecx
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsA]
test eax, eax
jne 0x401bca
push str.Change_BPP_complete
call fcn.00409a98
add esp, 4
jmp 0x401bd7
push str.FAILURE:_Change_BPP_failed
call fcn.00409a98
add esp, 4
jmp 0x401be6
push str.FAILURE:_Change_BPP_Test_failed
call fcn.00409a98
add esp, 4
jmp 0x401db4
push str.Got_ATI_MESSAGECODE_DAL_ACTION_SETDESKTOPRESOLUTION
call fcn.00409a98
add esp, 4
mov edx, dword [ebp - 0x150]
mov dword [ebp - 0x3c4], edx
push 0x94
push 0
lea eax, [ebp - 0x3c0]
push eax
call fcn.0040b250
add esp, 0xc
mov word [ebp - 0x39c], 0x94
mov ecx, dword [ebp - 0x3c4]
mov edx, dword [ecx]
mov dword [ebp - 0x34c], edx
mov eax, dword [ebp - 0x3c4]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x354], ecx
mov edx, dword [ebp - 0x3c4]
mov eax, dword [edx + 8]
mov dword [ebp - 0x350], eax
mov ecx, dword [ebp - 0x3c4]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x358], edx
mov eax, dword [ebp - 0x3c4]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x348], ecx
mov dword [ebp - 0x398], 0x7c0000
push 2
lea edx, [ebp - 0x3c0]
push edx
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsA]
test eax, eax
jne 0x401cbb
push 0
lea eax, [ebp - 0x3c0]
push eax
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsA]
test eax, eax
jne 0x401cac
push 0x4133f4
call fcn.00409a98
add esp, 4
jmp 0x401cb9
push 0x413414
call fcn.00409a98
add esp, 4
jmp 0x401cc8
push 0x41343c
call fcn.00409a98
add esp, 4
jmp 0x401db4
push str.ATI_MESSAGECODE_DAL_ACTION_SETSAMEDESKTOPRESOLUTION
call fcn.00409a98
add esp, 4
push 0x94
push 0
lea ecx, [ebp - 0x458]
push ecx
call fcn.0040b250
add esp, 0xc
mov word [ebp - 0x434], 0x94
lea edx, [ebp - 0x458]
push edx
push 0xffffffffffffffff
push 0
call dword [sym.imp.USER32.dll_EnumDisplaySettingsA]
push 2
lea eax, [ebp - 0x458]
push eax
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsA]
test eax, eax
jne 0x401d51
push 0x40000000
lea ecx, [ebp - 0x458]
push ecx
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsA]
test eax, eax
jne 0x401d42
push str.ChangeDisplaySettings_complete
call fcn.00409a98
add esp, 4
jmp 0x401d4f
push str.FAILURE:_ChangeDisplaySettings_failed
call fcn.00409a98
add esp, 4
jmp 0x401d5e
push str.FAILURE:_ChangeDisplaySettings_failed_on_CDS_TEST
call fcn.00409a98
add esp, 4
jmp 0x401db4
push str.Got_ATI_MESSAGECODE_DAL_ACTION_REMOVELARGEDESKTOPFROMPRIMARYADAPTER
call fcn.00409a98
add esp, 4
cmp dword [0x417b10], 0x12
jne 0x401da5
cmp dword [0x417b28], 0
je 0x401da5
push 0
push 0x3e8
push 0x4d3
mov edx, dword [0x417b28]
push edx
call dword [sym.imp.USER32.dll_SetTimer]
push str.Timer_for_large_desktop_R_S_support_was_created
call fcn.00409a98
add esp, 4
jmp 0x401db4
push str.FAILURE:_Unspecified_MESSAGE_CODE_used
call fcn.00409a98
add esp, 4
jmp 0x4017d3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004010d9
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4