Function at 0x409545
Capabilities:
Create thread
Delete file
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4109d2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push 0x4163e0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str.c:pollog.txt
call fcn.00409b80
add esp, 4
push 6
call fcn.00409baa
add esp, 4
call fcn.0040a890
mov dword [0x417b10], eax
cmp dword [0x417b10], 0
jne 0x40959c
xor eax, eax
jmp 0x40998f
call fcn.0040a9af
mov dword [0x417ae8], eax
mov ecx, 0x417af0
call fcn.00403922
call fcn.00408b30
mov dword [0x417b14], eax
mov eax, dword [0x417b14]
and eax, 0x19fb
test eax, eax
jne 0x4095dc
push str.FAILURE:_Aborted____No_registry_key_for_ATIPOLL
call fcn.00409a98
add esp, 4
xor eax, eax
jmp 0x40998f
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str.Loading_instance_0x_x__ThreadID__0x_x
call fcn.00409a98
add esp, 0xc
push str.ATI_video_bios_poller
push str.ATI_VIDEO_BIOS_WINDOW_CLASS
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x409623
mov edx, dword [ebp + 8]
push edx
push str.Another_instance_is_already_running._Current_instance_0x_x_exit
call fcn.00409a98
add esp, 8
mov eax, 1
jmp 0x40998f
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0x409431
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 6
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], str.ATI_VIDEO_BIOS_WINDOW_CLASS
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.USER32.dll_RegisterClassA]
and eax, 0xffff
test eax, eax
jne 0x40968f
push str.FAILURE:_Register_window_class_failed
call fcn.00409a98
add esp, 4
xor eax, eax
jmp 0x40998f
push 0
mov edx, dword [ebp + 8]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0x80000000
push str.ATI_video_bios_poller
push str.ATI_VIDEO_BIOS_WINDOW_CLASS
push 0x80
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x417b28], eax
cmp dword [0x417b28], 0
jne 0x4096dd
push str.FAILURE:_Failed_to_create_main_window
call fcn.00409a98
add esp, 4
xor eax, eax
jmp 0x40998f
call fcn.00404ac3
push str.ATIPollPlugCwddeMutex
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x417b2c], eax
cmp dword [0x417b2c], 0
jne 0x409713
push str.FAILURE:_Failed_to_create_mutex
call fcn.00409a98
add esp, 4
xor eax, eax
jmp 0x40998f
push str.The_Mutex_created
call fcn.00409a98
add esp, 4
mov eax, dword [0x417b14]
and eax, 0x1000
test eax, eax
je 0x409733
call fcn.00405d60
mov ecx, dword [0x417b14]
and ecx, 0x80
test ecx, ecx
je 0x40974d
call fcn.0040ad40
call fcn.0040ad61
mov edx, dword [0x417b14]
and edx, 1
test edx, edx
je 0x4097e4
push 0x5c
call fcn.0040b8d9
add esp, 4
mov dword [ebp - 0x5c], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x5c], 0
je 0x409785
mov ecx, dword [ebp - 0x5c]
call fcn.00406470
mov dword [ebp - 0x68], eax
jmp 0x40978c
mov dword [ebp - 0x68], 0
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x58], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x58]
mov dword [0x417b30], ecx
push 0x417b1c
push 0
push 0
push 0x408930
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x417b18], eax
cmp dword [0x417b18], 0
jne 0x4097d7
push str.FAILURE:_Failed_to_create_hotkey_poller_thread
call fcn.00409a98
add esp, 4
jmp 0x4097e4
push str.Hotkey_poller_thread_is_created
call fcn.00409a98
add esp, 4
mov edx, dword [0x417b14]
and edx, 0x13a
test edx, edx
je 0x409881
push 0x9c
call fcn.0040b8d9
add esp, 4
mov dword [ebp - 0x64], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x64], 0
je 0x409822
mov ecx, dword [ebp - 0x64]
call fcn.00401220
mov dword [ebp - 0x6c], eax
jmp 0x409829
mov dword [ebp - 0x6c], 0
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x60], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x60]
mov dword [0x417b34], ecx
push 0x417b24
push 0
push 0
push 0x40895d
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x417b20], eax
cmp dword [0x417b20], 0
jne 0x409874
push str.FAILURE:_Failed_to_create_ATIExtEvent_thread.
call fcn.00409a98
add esp, 4
jmp 0x409881
push str.ATIExtEvent_thread_is_created
call fcn.00409a98
add esp, 4
push 0
mov edx, dword [0x417b28]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x417ae8], 1
jne 0x4098cc
mov dword [ebp - 0x54], 1
mov eax, dword [ebp - 0x54]
push eax
call fcn.00408b72
add esp, 4
test eax, eax
jne 0x4098bf
push str.FAILURE:_Failed_to_register_as_service
call fcn.00409a98
add esp, 4
jmp 0x4098cc
push str.Registed_as_service
call fcn.00409a98
add esp, 4
push 0
push 0
push 0
lea ecx, [ebp - 0x50]
push ecx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x4098f6
lea edx, [ebp - 0x50]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x4098cc
mov ecx, dword [0x417b28]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x409914
mov edx, dword [0x417b28]
push edx
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp dword [0x417b18], 0
je 0x40993d
mov eax, dword [0x417b18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x417b18], 0
mov dword [0x417b1c], 0
cmp dword [0x417b20], 0
je 0x409967
mov ecx, dword [0x417b20]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x417b20], 0
mov dword [0x417b24], 0
cmp dword [0x417b2c], 0
je 0x40997d
mov edx, dword [0x417b2c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.ATI_poll_exits.
call fcn.00409a98
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret