Function at 0x401640
Capabilities:
Hide graphical window
Terminate thread

Disassembly:
push ebp
xor edx, edx
push edi
xor eax, eax
push esi
push ebx
sub esp, 0x9c
mov dword [esp + eax + 0x68], edx
mov dword [esp + eax + 0x6c], edx
add eax, 8
cmp eax, 0x20
jb 0x40164e
xor edx, edx
mov ecx, 0x401ae0
mov dword [esp + eax + 0x68], edx
lea eax, [esp + 0x68]
mov ebx, 5
mov dword [esp], eax
mov esi, str.Woram32MainClass
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x8c], esi
call dword [sym.imp.USER32.dll_RegisterClassA]
sub esp, 4
test ax, ax
je 0x40187c
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
xor edi, edi
mov ebp, 0x10
mov dword [esp], 1
call esi
sub esp, 4
mov ebx, eax
mov dword [esp], 0
call esi
xor edx, edx
xor ecx, ecx
xor esi, esi
sub esp, 4
mov dword [esp + 0x2c], edx
mov edx, 0xb0
mov dword [esp + 0x28], ecx
lea ecx, [ebx - 0x10]
mov ebx, str.iexplore
mov dword [esp + 0x18], edx
mov edx, ecx
mov dword [esp + 0x24], esi
shr edx, 0x1f
mov esi, str.Woram32MainClass
mov dword [esp + 0x20], edi
add edx, ecx
mov ecx, 0x90000000
mov dword [esp + 0xc], ecx
sar edx, 1
mov edi, 0xffffffec
mov dword [esp + 0x14], edx
lea edx, [eax - 0x90]
mov dword [esp + 0x1c], ebp
mov eax, edx
mov ebp, 0xffffffec
mov dword [esp + 8], ebx
shr eax, 0x1f
mov dword [esp + 4], esi
add eax, edx
mov dword [esp], 0
sar eax, 1
mov dword [esp + 0x10], eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
sub esp, 0x30
mov ebx, eax
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov esi, dword [sym.imp.USER32.dll_SetWindowLongA]
sub esp, 8
or eax, 0x80000
mov dword [esp], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
call esi
mov eax, 2
sub esp, 0xc
mov dword [esp + 0xc], eax
mov eax, 0x20
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
sub esp, 0x10
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, 0xfffffff8
mov dword [esp + 4], eax
call esi
xor eax, eax
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
sub esp, 0xc
mov dword [esp], ebx
mov dword [esp + 4], eax
call esi
mov eax, 5
sub esp, 8
mov dword [esp], ebx
mov dword [esp + 4], eax
call esi
sub esp, 8
xor edx, edx
lea ebx, [esp + 0x4c]
xor eax, eax
mov dword [esp + eax + 0x4c], edx
mov dword [esp + eax + 0x50], edx
add eax, 8
cmp eax, 0x18
jb 0x4017d9
mov dword [ebx + eax], 0
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
mov ebp, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x401814
mov dword [esp], ebx
call ebp
sub esp, 4
mov dword [esp], ebx
call edi
sub esp, 4
mov dword [esp], ebx
xor eax, eax
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
call esi
sub esp, 0x10
test eax, eax
jne 0x401804
mov dword [esp + 0x3c], eax
xor eax, eax
xor edx, edx
mov byte [0x409008], al
mov eax, dword [0x40d03c]
mov dword [esp + 4], edx
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esp], eax
call ebx
mov eax, dword [0x40d038]
xor ecx, ecx
sub esp, 8
mov dword [esp + 4], ecx
mov dword [esp], eax
call ebx
sub esp, 8
mov edx, dword [esp + 0x3c]
add esp, 0x9c
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov edx, 0xffffffff
jmp 0x40186d