Function at 0x40a6b0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46ba6b
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [0x4834f0]
xor eax, esp
mov dword [esp + 0xe0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4834f0]
xor eax, esp
push eax
lea eax, [esp + 0xf8]
mov dword fs:[0], eax
mov ebp, 1
xor ebx, ebx
cmp dword [0x485364], ebp
jne 0x40a724
cmp dword [0x486c5c], 0x14
jle 0x40a71e
mov eax, dword [0x486c3c]
push ebx
push ebx
push 0x8004
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov dword [0x486c5c], ebx
jmp 0x40a724
add dword [0x486c5c], ebp
cmp dword [0x485250], ebx
je 0x40a866
push 0x9c
lea ecx, [esp + 0x5c]
push ebx
push ecx
call fcn.00440ab0
add esp, 0xc
push ebx
lea edx, [esp + 0x5c]
push edx
push 0xffffffffffffffff
push ebx
mov word [esp + 0x8c], 0x9c
call dword [sym.imp.USER32.dll_EnumDisplaySettingsExA]
mov eax, dword [esp + 0x8c]
cmp eax, 3
ja case.default.0x40a768
jmp dword [eax*4 + 0x40aac8]
xor edi, edi
jmp 0x40a7b3
cmp dword [0x48524c], ebx
mov edi, 0x5a
jne 0x40a7b3
mov edi, 0x10e
jmp 0x40a7b3
mov edi, 0xb4
jmp 0x40a7b3
cmp dword [0x48524c], ebx
mov edi, 0x10e
jne 0x40a7b3
mov edi, 0x5a
jmp 0x40a7b3
push str.Rotation_:_Default
call fcn.00404b40
mov edi, dword [esp + 0x1c]
add esp, 4
add edi, dword [0x485238]
mov eax, 0x49f49f49
imul edi
sub edx, edi
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x168
add edi, eax
cmp dword [0x485254], edi
je 0x40a866
mov esi, 0x4857b8
push esi
call fcn.00408630
mov ebp, eax
add esp, 4
cmp ebp, ebx
jne 0x40a819
add esi, 0x104
cmp esi, 0x486c08
jl 0x40a7e5
push str.Error__Can_not_create_device_handle.
call fcn.00404b40
add esp, 4
mov eax, 1
jmp 0x40aaa0
push ebp
push edi
mov dword [0x485254], edi
call fcn.00408350
add esp, 8
test eax, eax
jne 0x40a846
push str.Set_Rotation_Failed_
call fcn.00404b40
add esp, 4
mov dword [0x485254], 0x3e7
jmp 0x40a85a
mov ecx, dword [0x485254]
push ecx
push str.Set_Rotation__d
call fcn.00404b40
add esp, 8
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, 1
cmp dword [0x48525c], ebx
je 0x40aa9e
lea edx, [esp + 0x18]
push edx
push str.StopPolling
push 0x485578
call fcn.00407790
add esp, 0xc
cmp dword [esp + 0x18], ebx
jne 0x40aa9e
mov esi, 0x4857b8
push esi
call fcn.00408630
mov edi, eax
add esp, 4
cmp edi, ebx
jne 0x40a8ba
add esi, 0x104
cmp esi, 0x486c08
jl 0x40a898
jmp 0x40aa9e
push edi
call fcn.00405430
add eax, 0xffffffff
add esp, 4
cmp eax, 0x62
ja case.0x40a8d6.2
movzx eax, byte [eax + 0x40aaec]
jmp dword [eax*4 + 0x40aad8]
push str.snapshut
call fcn.00404b40
add esp, 4
call fcn.00405bc0
mov esi, eax
cmp esi, ebx
je 0x40a950
push str.Twain_is_actived__
call fcn.00404b40
add esp, 4
push ebx
push ebx
push 0x8003
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov dword [esp + 0x50], ebx
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x104], ebx
call fcn.00408c30
mov edx, dword [esp + 0x24]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x50]
cmp eax, ebx
mov dword [esp + 0x100], 0xffffffff
je 0x40a969
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x40a969
mov eax, dword [0x4856a0]
mov ecx, dword [0x486c3c]
push ebx
push eax
push 0x111
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
cmp dword [0x48706c], ebx
je 0x40a9ae
movzx eax, word [0x487070]
lea edx, [esp + 0x14]
push edx
push eax
push edi
mov dword [esp + 0x20], ebx
call fcn.00405160
add esp, 0xc
test eax, eax
je 0x40a9ae
mov eax, dword [esp + 0x14]
test al, 1
je 0x40a9ae
movzx ecx, word [0x487070]
and eax, 0xfe
push eax
push ecx
push edi
call fcn.00405300
add esp, 0xc
push 0x6a4
mov dword [0x485688], ebp
mov dword [0x485684], ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40aa97
push str.launchAP
call fcn.00404b40
add esp, 4
push 5
push 0x486c60
mov dword [0x485688], ebp
mov dword [0x485684], ebx
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x1f
push 0x486c60
jbe 0x40aa01
push str.Launch___s_succeed___n
jmp 0x40aa06
push str.Launch___s_failed___n
call fcn.00404b40
add esp, 8
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40aa97
push str.STREAMCLOSE___n
call fcn.00404b40
add esp, 4
cmp dword [0x48706c], ebx
je 0x40aa97
movzx eax, word [0x487070]
lea edx, [esp + 0x14]
push edx
push eax
push edi
mov dword [esp + 0x20], ebx
call fcn.00405160
add esp, 0xc
test eax, eax
je 0x40aa97
mov eax, dword [esp + 0x14]
test al, 1
je 0x40aa97
movzx ecx, word [0x487070]
and eax, 0xfe
push eax
push ecx
push edi
call fcn.00405300
push str.launchAP
call fcn.00404b40
add esp, 0x10
jmp 0x40a9d7
push str.Error__Device_no_response.
call fcn.00404b40
add esp, 4
add dword [0x485684], ebp
jmp 0x40aa97
mov dword [0x485684], ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xe0]
xor ecx, esp
call fcn.0043e6bd
add esp, 0xf0
ret