Function at 0x40fb10
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46865b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68c
cmp dword [0x491098], 4
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
ja 0x40fb4c
push str.Ati_Polling_Application_Client_does_not_support_9x__ME_and_NT4._EXITing
call fcn.00411050
jmp 0x410512
call fcn.00427dc0
test eax, eax
je 0x40fb6d
call fcn.0040a630
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x491098], 6
jbe 0x40fb8b
call fcn.00422ad0
cmp eax, 4
jne 0x40fb8b
push 0x888
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [0x491164]
xor edi, edi
cmp eax, edi
jne 0x40fbce
call fcn.0040e0f0
test eax, eax
je 0x410515
push 1
push 0x491180
push 1
push edi
push str.PollSt
push edi
call fcn.004227c0
add esp, 0x18
test eax, eax
jne 0x40fbe6
push str.Failed_to_set_log_file
call fcn.00411050
jmp 0x410512
call fcn.0040ac20
test eax, eax
jne 0x40fba3
push str.AtiLogonEvent__Ati_Hot_Key_Poller_Service_is_not_running_n
call fcn.00411050
jmp 0x410512
cmp dword [0x4900e8], edi
je 0x40fc01
mov eax, dword [0x491098]
push eax
push str.WinMainClient_starts_with_OS_version__d
call fcn.0040aab0
add esp, 8
mov ecx, dword [ebp + 8]
push 0x40ef00
push str.ATI_VIDEO_BIOS_WINDOW_CLASS
push str.ATI_video_bios_poller_client
push ecx
call fcn.0040dcd0
add esp, 0x10
test eax, eax
je 0x410515
mov eax, dword [0x491098]
or ebx, 0xffffffff
cmp eax, 8
mov dword [0x4900f0], edi
mov esi, ebx
jb 0x40fd6a
mov ecx, 0x491a60
call fcn.00431e40
test eax, eax
jne 0x40fc56
cmp dword [0x4900e8], edi
jmp 0x40ff07
mov esi, dword [0x492b40]
push esi
mov ecx, 0x491a60
call fcn.0042d280
cmp dword [eax + 0x15c], edi
je 0x40fd19
push esi
mov ecx, 0x491a60
call fcn.0042d280
cmp dword [eax + 0x160], edi
jne 0x40fd19
call fcn.0040aac0
push eax
call fcn.00427440
add esp, 4
test eax, eax
jne 0x40fcb4
call fcn.0040a730
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 0x491a60
call fcn.0042fcd0
test eax, 0x40000
mov dword [0x49109c], eax
jne 0x40fcd5
cmp dword [0x4900e8], edi
jmp 0x40ff4f
push edi
mov ecx, 0x491a60
mov dword [0x49105c], ebx
mov dword [0x491060], ebx
mov dword [0x491064], ebx
mov dword [0x491068], ebx
mov dword [0x49106c], edi
call fcn.0042e950
test eax, eax
jne 0x40fd23
cmp dword [0x4900e8], edi
je 0x40fd23
push str.WinMainClient_failed_to_initialize_DPPE
call fcn.0040aab0
add esp, 4
jmp 0x40fd23
or dword [0x49109c], 0x40120
mov ecx, 0x491a60
call fcn.0042e900
test eax, eax
jne 0x40fd48
cmp dword [0x4900e8], edi
je 0x40fd52
push str.WinMainClient_failed_to_initialize_PowerXpress
call fcn.0040aab0
add esp, 4
jmp 0x40fd52
mov dword [0x491078], 1
mov ecx, 0x491a60
call fcn.0042d710
mov esi, eax
cmp esi, dword [0x492b3c]
jae 0x4104e6
cmp dword [0x491098], 8
sbb ebx, ebx
and ebx, 6
add ebx, 4
je 0x40fece
nop
xor eax, eax
mov ecx, 0x188
lea edi, [ebp - 0x698]
rep stosd dword es:[edi], eax
cmp dword [0x491098], 7
mov eax, dword [0x491164]
mov dword [ebp - 0x68c], eax
mov dword [ebp - 0x690], 9
ja 0x40fdb5
mov dword [ebp - 0x688], eax
jmp 0x40fdfd
mov edx, dword [0x49109c]
push esi
mov ecx, 0x491a60
mov dword [ebp - 0x680], edx
call fcn.0042d280
mov eax, dword [eax + 0x44]
push esi
mov ecx, 0x491a60
mov dword [ebp - 0x688], eax
mov dword [ebp - 0x684], esi
call fcn.00430450
test eax, eax
je 0x4104e6
push 0
mov ecx, eax
call fcn.00437340
mov dword [ebp - 0x67c], eax
xor eax, eax
mov ecx, 0xb
lea edi, [ebp - 0x5c]
rep stosd dword es:[edi], eax
push 1
lea ecx, [ebp - 0x5c]
push ecx
lea edx, [ebp - 0x698]
push edx
push str..pipeExtEventPipe_Service
call fcn.00409bf0
add esp, 0x10
test eax, eax
jne 0x40fe66
mov eax, dword [0x4900e8]
test eax, eax
je 0x40fe42
push str..pipeExtEventPipe_Service
push str.WinMainClient_failed_CallAtiNamedPipe._EXTEVENT_REQTYPE_SESSION_SETUP__s.
call fcn.0040aab0
add esp, 8
mov eax, dword [0x491164]
test eax, eax
ja 0x4104e6
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
dec ebx
jne 0x40fd80
jmp 0x4104e6
cmp dword [0x491098], 8
jb 0x40fedb
mov ecx, dword [ebp - 0x50]
mov eax, 1
cmp ecx, eax
jne 0x40fe99
mov ecx, dword [0x4900e8]
test ecx, ecx
je 0x40fe92
push str.Client:_Service_is_not_complete_state
call fcn.0040aab0
add esp, 4
mov dword [0x491168], eax
jmp 0x40feaf
mov eax, dword [0x4900e8]
test eax, eax
je 0x40feaf
push str.Client:_Service_is_in_complete_state
call fcn.0040aab0
add esp, 4
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
mov dword [0x4929e8], eax
mov eax, dword [ebp - 0x44]
test eax, eax
mov dword [0x4929ec], ecx
je 0x40fece
or dword [0x49116c], 0x10
cmp dword [0x491098], 8
jae 0x40ff67
mov eax, dword [ebp - 0x48]
test eax, eax
mov edx, dword [ebp - 0x50]
mov dword [0x49109c], edx
je 0x40fef2
or dword [0x49116c], 0x10
mov ecx, 0x491a60
call fcn.00431e40
test eax, eax
jne 0x40ff32
mov eax, dword [0x4900e8]
test eax, eax
je 0x410515
push str..pipeExtEventPipe_Service
push str.WinMainClient_failed_CallAtiNamedPipe._EXTEVENT_REQTYPE_SESSION_SETUP__s.
call fcn.0040aab0
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 0x491a60
call fcn.0042fcd0
test eax, 0x40000
mov dword [0x49109c], eax
jne 0x40ff6c
mov eax, dword [0x4900e8]
test eax, eax
je 0x4104e6
push str.Client:_SOFTWARE_BUG_ExtEvent_MultiSession_Handle_not_supported._EXIT
call fcn.0040aab0
add esp, 4
jmp 0x4104e6
mov eax, dword [0x49109c]
mov ecx, dword [0x4900e8]
test ecx, ecx
je 0x40ff84
push eax
push str.WinMainClient_g_ulSupportedFeatures_is_0x_x
call fcn.0040aab0
add esp, 8
mov eax, dword [0x492b40]
push eax
mov ecx, 0x491a60
call fcn.0042d280
mov ecx, dword [eax + 0x160]
test ecx, ecx
jne 0x40ffa3
call fcn.0040ad50
push 1
push 0x491180
push 1
push 0
push str.Pollog
push 0
call fcn.004227c0
mov eax, dword [0x4900e8]
add esp, 0x18
test eax, eax
je 0x40ffd9
mov eax, dword [0x4910cc]
push eax
push str.WinMainClient_g_bAutoDisplayEnabled_is__d
call fcn.0040aab0
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
mov dword [0x49115c], 1
call fcn.0040b670
add esp, 4
test eax, eax
je 0x4104e6
push 0x2cc
mov dword [0x4900ec], 3
mov dword [ebp - 4], 0
call fcn.0045e736
mov ecx, eax
add esp, 4
mov dword [ebp - 0x14], ecx
test ecx, ecx
mov byte [ebp - 4], 1
je 0x410031
call fcn.0042c490
mov ecx, eax
mov dword [0x491170], ecx
jmp 0x410051
xor ecx, ecx
mov dword [0x491170], ecx
jmp 0x410051
test ecx, ecx
mov dword [ebp - 4], 0xffffffff
jne 0x41007b
mov eax, dword [0x4900e8]
test eax, eax
je 0x4104e6
push str.ATI_poll_Client_g_pSessionPipe_memory_alloc_failed.
call fcn.0040aab0
add esp, 4
jmp 0x4104e6
mov edx, dword [ecx]
call dword [edx + 4]
test eax, eax
jne 0x4100a3
mov eax, dword [0x4900e8]
test eax, eax
je 0x4104e6
push str.ATI_poll_Client_sessionPipe_creation_failed.
call fcn.0040aab0
add esp, 4
jmp 0x4104e6
mov ecx, 0x4912b0
call fcn.00445d30
test al, al
jne 0x4100d0
mov eax, dword [0x4900e8]
test eax, eax
je 0x4104e6
push str.ATI_poll_Client_oem_event_callback_manager_initilization_failed.
call fcn.0040aab0
add esp, 4
jmp 0x4104e6
mov eax, dword [0x493bec]
test eax, eax
jne 0x410107
lea esp, [esp]
mov eax, dword [0x4900e8]
test eax, eax
je 0x4100f6
push str.WinMainClient_pipe_not_ready_yet.
call fcn.0040aab0
add esp, 4
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x493bec]
test eax, eax
je 0x4100e0
xor eax, eax
mov ecx, 0x188
lea edi, [ebp - 0x698]
rep stosd dword es:[edi], eax
mov eax, dword [0x491164]
mov dword [ebp - 0x688], eax
xor eax, eax
mov ecx, 0xb
lea edi, [ebp - 0x5c]
rep stosd dword es:[edi], eax
push 1
lea ecx, [ebp - 0x5c]
push ecx
lea edx, [ebp - 0x698]
push edx
push str..pipeExtEventPipe_Service
mov dword [ebp - 0x690], 0x1e
call fcn.00409bf0
add esp, 0x10
test eax, eax
jne 0x410179
mov eax, dword [0x4900e8]
test eax, eax
je 0x4104e6
push str..pipeExtEventPipe_Service
push str.WinMainClient_failed_CallAtiNamedPipe_EXTEVENT_REQTYPE_SESSION_READY__s.
call fcn.0040aab0
add esp, 8
jmp 0x4104e6
call fcn.0040f670
test eax, eax
je 0x4104e6
mov ecx, dword [0x4910b8]
test ecx, ecx
je 0x4101b2
lea eax, [ebp - 0x50]
push eax
call fcn.00402070
mov ecx, dword [0x4910b0]
push 0
push 0x5dc
push 0x14d1
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
mov edx, dword [0x491164]
xor eax, eax
push 1
push eax
mov ecx, 0x188
lea edi, [ebp - 0x698]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x698]
push eax
mov ebx, 0x8001
mov esi, 0x620
push str..pipeExtEventPipe_Service
mov dword [ebp - 0x698], ebx
mov dword [ebp - 0x694], esi
mov dword [ebp - 0x690], 0x30
mov dword [ebp - 0x688], edx
call fcn.00409bf0
add esp, 0x10
test eax, eax
jne 0x410227
mov eax, dword [0x4900e8]
test eax, eax
je 0x4104e6
push str.WinMainClient:_EXTEVENT_REQTYPE_CLT_GETCOMCALLBACKS___CallAtiNamedPipe_failed
call fcn.0040aab0
add esp, 4
jmp 0x4104e6
mov eax, dword [0x4910b8]
test eax, eax
je 0x41030a
mov dword [ebp - 0x14], 0
jmp 0x410240
xor eax, eax
push 1
mov ecx, 0x188
lea edi, [ebp - 0x698]
rep stosd dword es:[edi], eax
mov ecx, dword [0x491164]
lea edx, [ebp - 0x5c]
push edx
lea eax, [ebp - 0x698]
push eax
push str..pipeExtEventPipe_Service
mov dword [ebp - 0x698], ebx
mov dword [ebp - 0x694], esi
mov dword [ebp - 0x690], 0x32
mov dword [ebp - 0x688], ecx
call fcn.00409bf0
add esp, 0x10
test eax, eax
je 0x410208
cmp dword [ebp - 0x34], 1
je 0x41030a
mov eax, dword [0x4910b8]
mov ecx, dword [eax + 0x128]
test ecx, ecx
je 0x4102fa
mov edx, dword [ebp - 0x4c]
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x2c], edx
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x20], edx
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x30], edx
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x1c], ecx
push 0
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], edx
push ecx
mov ecx, dword [eax + 0x128]
call fcn.00408450
mov eax, dword [ebp - 0x14]
inc eax
cmp eax, 4
mov dword [ebp - 0x14], eax
jb 0x410240
cmp dword [0x491098], 6
jbe 0x410367
mov edx, dword [0x4929e0]
push edx
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0x40ab60
mov dword [ebp - 0x14], 0
call fcn.00423c00
add esp, 0x14
test eax, eax
jne 0x410360
mov eax, dword [0x4900e8]
test eax, eax
je 0x4104e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WinMainClient_failed_to_CreateThread_RegisterWTSNotificationThread_err_d.
call fcn.0040aab0
add esp, 8
jmp 0x4104e6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x491098], 8
jb 0x410420
call fcn.00409f80
call fcn.0044a980
mov edx, dword [0x490104]
mov eax, dword [0x490108]
push 0x4912a0
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [0x49010c]
mov dword [ecx + 4], eax
mov eax, dword [0x490110]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, dword [0x4910b0]
push ecx
call fcn.0044ef60
test eax, eax
jne 0x4103cf
mov eax, dword [0x4900e8]
test eax, eax
je 0x4103cf
push str.Ati_RegisterDeviceInterface_failed_n
call fcn.0040aab0
add esp, 4
mov eax, dword [0x490114]
mov ecx, dword [0x490118]
push 0x4912a4
sub esp, 0x10
mov edx, esp
mov dword [edx], eax
mov eax, dword [0x49011c]
mov dword [edx + 4], ecx
mov ecx, dword [0x490120]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov edx, dword [0x4910b0]
push edx
call fcn.0044ef60
test eax, eax
jne 0x410420
mov eax, dword [0x4900e8]
test eax, eax
je 0x410420
push str.Ati_RegisterDeviceInterface_failed_n
call fcn.0040aab0
add esp, 4
call fcn.00428c40
call fcn.0044acf0
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea eax, [ebp - 0x78]
push eax
call esi
test eax, eax
je 0x41046c
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea esp, [esp]
lea ecx, [ebp - 0x78]
push ecx
call edi
lea edx, [ebp - 0x78]
push edx
call ebx
push 0
push 0
push 0
lea eax, [ebp - 0x78]
push eax
call esi
test eax, eax
jne 0x410450
cmp dword [0x491098], 8
jb 0x4104c4
call fcn.00409fa0
mov ecx, dword [0x4912a0]
push ecx
call fcn.0044efe0
test eax, eax
jne 0x4104a0
mov eax, dword [0x4900e8]
test eax, eax
je 0x4104a0
push str.Ati_UnRegisterDeviceInterface_failed_n
call fcn.0040aab0
add esp, 4
push 0x4912a4
call fcn.0044efe0
test eax, eax
jne 0x4104c4
mov eax, dword [0x4900e8]
test eax, eax
je 0x4104c4
push str.Ati_RegisterDeviceInterface_failed_n
call fcn.0040aab0
add esp, 4
call fcn.0044ad20
mov edx, dword [0x4910b0]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4104e6
mov eax, dword [0x4910b0]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x4900ec], 2
mov dword [0x4910d4], 0
call fcn.0040c860
mov eax, dword [0x4900e8]
test eax, eax
je 0x410515
push str.ATI_poll_Client_exits.
call fcn.0040aab0
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret