Function at 0x40a090
Capabilities:
Hide graphical window
Write file on windows

Disassembly:
sub esp, 0x2cc
push ebx
push esi
push edi
push 0
push 0x10000000
push 4
push 0
push 2
push 0xc0000000
push str.c:jswx.log
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40a1b4
push 2
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
or ecx, 0xffffffff
mov edi, str.MainInitWindow
xor eax, eax
lea edx, [esp + 0xd8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0xd8]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, 0x42378c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0xdc]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Web_Function
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0xdc]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x423778
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x38]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
lea edi, [esp + 0xe0]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0xe4]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x488e90]
lea edx, [esp + 0x38]
push 0xa0
push edx
push 0xd
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
mov eax, dword [esp + 0x2e0]
mov esi, dword [esp + 0x2dc]
lea ecx, [esp + 0x38]
test eax, eax
mov dword [0x426b60], ecx
jne 0x40a253
push 0x7f
push esi
mov dword [esp + 0x14], 3
mov dword [esp + 0x18], 0x40a2d0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], esi
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push 0
mov dword [esp + 0x28], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push 0
mov dword [esp + 0x28], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov edx, dword [0x426b60]
mov dword [esp + 0x28], eax
lea eax, [esp + 0xc]
mov dword [esp + 0x2c], 0
push eax
mov dword [esp + 0x34], edx
call dword [sym.imp.USER32.dll_RegisterClassA]
push 0
mov ecx, dword [0x426b60]
push esi
push 0
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push str.Lexmark_Supplies_Monitor
push ecx
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov ecx, dword [0x43799c]
mov dword [0x488e8c], eax
cmp ecx, 1
je 0x40a2af
cmp ecx, 2
je 0x40a2af
push 6
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebx
add esp, 0x2cc
ret
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebx
add esp, 0x2cc
ret