Function at 0x404890
Capabilities:
Hide graphical window
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43b381
mov eax, dword fs:[0]
push eax
sub esp, 0x2a0
mov eax, dword [0x44a874]
xor eax, esp
mov dword [esp + 0x298], eax
push ebx
push esi
push edi
mov eax, dword [0x44a874]
xor eax, esp
push eax
lea eax, [esp + 0x2b0]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
cmp eax, 0x4a
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
mov edi, ecx
mov dword [esp + 0x10], esi
ja 0x404d59
je 0x404b9e
add eax, 0xffffffff
cmp eax, 0x45
ja case.0x4048fd.2
movzx eax, byte [eax + 0x40500c]
jmp dword [eax*4 + 0x404ff4]
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
push 0x2000
push 0
push 0
push 0
push 0x81
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
test eax, eax
mov dword [edi + 0xc], eax
je 0x404970
lea ecx, [edi + 0x10]
push ecx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
push str.B32D0E82_F3A7_49f1_BCD8_C814F75CEF2F
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
mov dword [edi + 0x328], eax
call fcn.00405060
mov esi, edi
call fcn.00405430
mov esi, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push esi
push ecx
push edx
push ebx
call dword [sym.imp.USER32.dll_DefWindowProcW]
mov ecx, dword [esp + 0x2b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x298]
xor ecx, esp
call fcn.00420bdf
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [0x4531cc]
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
lea edx, [esp + 0x28]
push edx
push eax
call edi
lea ecx, [esp + 0x14]
push ecx
push ebx
call edi
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
sub eax, dword [esp + 0x14]
sub ecx, dword [esp + 0x18]
cmp dword [esi + 8], 0
jge 0x4049ce
mov dword [esi + 8], 0
mov edx, dword [esp + 0x30]
mov edi, dword [esi + 8]
sub edx, dword [esp + 0x28]
add edi, eax
cmp edi, edx
jle 0x4049e4
sub edx, eax
mov dword [esi + 8], edx
mov edx, dword [esp + 0x2c]
mov eax, edx
sub eax, dword [esp + 0x18]
cmp dword [esi + 0xc], eax
jge 0x4049fa
mov dword [esi + 0xc], 0
mov eax, dword [esp + 0x34]
sub eax, edx
mov edx, dword [esi + 0xc]
add edx, ecx
cmp edx, eax
jle case.0x4048fd.2
sub eax, ecx
mov dword [esi + 0xc], eax
jmp case.0x4048fd.2
push ebx
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
lea eax, [esp + 0x38]
push eax
push ebx
mov dword [esp + 0x2c], esi
call dword [sym.imp.USER32.dll_GetClientRect]
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [edi + 0xc]
mov esi, eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [edi + 0x18]
mov ecx, dword [esp + 0x44]
sub ecx, dword [esp + 0x3c]
push 0xcc0020
push edx
mov edx, dword [esp + 0x48]
sub edx, dword [esp + 0x40]
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0x14]
push eax
mov eax, dword [esp + 0x30]
push 0
push 0
push esi
push ecx
push edx
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_StretchBlt]
push ebx
mov eax, edi
call fcn.00405a00
mov edi, dword [edi + 0x2f8]
test edi, edi
je 0x404a96
mov edx, dword [edi]
mov eax, dword [edx + 0x24]
mov ecx, edi
call eax
mov ecx, dword [esp + 0x28]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edx, dword [esp + 0x24]
push edx
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
jmp 0x40495c
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x1c]
sub ecx, dword [esp + 0x14]
cmp ecx, 0x24f
jl case.0x4048fd.2
mov edx, dword [esp + 0x20]
sub edx, dword [esp + 0x18]
cmp edx, 0x1cc
jl case.0x4048fd.2
push 3
push 0x1cc
push 0x24f
push 0
push 0
push 0xffffffffffffffff
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edi, dword [edi + 0x2f8]
test edi, edi
je case.0x4048fd.2
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x14]
mov ecx, dword [edi + 4]
push 1
push 0
push 0
push 0
sub eax, 0x19
push eax
push 0
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp case.0x4048fd.2
mov ecx, dword [edi + 0x308]
test ecx, ecx
je 0x404b56
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [edi + 0x308], 0
push 2
push ebx
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [edi + 4]
test eax, eax
je 0x404b7b
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
push edi
call fcn.004054a0
push 0
mov dword [edi + 0x370], 1
call dword [sym.imp.USER32.dll_PostQuitMessage]
call dword [sym.imp.ole32.dll_OleUninitialize]
jmp case.0x4048fd.2
push 0x104
lea ecx, [esp + 0xa0]
push 0
push ecx
call fcn.00422b60
mov edx, dword [esi + 8]
add esp, 0xc
push 0x103
push edx
lea eax, [esp + 0xa4]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
push edi
lea ecx, [esp + 0xa0]
call fcn.00404230
test eax, eax
jl 0x404c20
mov eax, dword [edi + 0x300]
test eax, eax
je 0x404c0d
lea edx, [edi + 0x28]
push eax
call fcn.00401990
mov eax, dword [edi + 0x300]
mov eax, dword [eax + 4]
test eax, eax
je 0x404c0d
push 0
push 0
push 0x7e9
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 3
push 0
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [0x4533fc], 0
je case.0x4048fd.2
push 0x441660
lea ecx, [esp + 0x84]
call fcn.004039c0
xor esi, esi
lea ecx, [esp + 0x48]
mov dword [esp + 0x2b8], esi
call fcn.00404200
push 0xffffffffffffffff
push esi
push eax
lea ecx, [esp + 0x8c]
mov byte [esp + 0x2c4], 1
call fcn.004037b0
mov byte [esp + 0x2b8], 0
cmp dword [esp + 0x60], 8
jb 0x404c84
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.00420bda
add esp, 4
push 3
push 0x4415e8
lea ecx, [esp + 0x88]
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], esi
mov word [esp + 0x54], si
call fcn.004038c0
lea esi, [esp + 0x64]
call fcn.00405e60
push 0xffffffffffffffff
xor esi, esi
push esi
push eax
lea ecx, [esp + 0x8c]
mov byte [esp + 0x2c4], 2
call fcn.004037b0
mov byte [esp + 0x2b8], 0
cmp dword [esp + 0x7c], 8
jb 0x404ce7
mov edx, dword [esp + 0x68]
push edx
call fcn.00420bda
add esp, 4
sub esp, 0x1c
mov ecx, esp
mov eax, 7
mov dword [esp + 0x98], eax
mov dword [esp + 0x44], esp
mov dword [esp + 0x94], esi
mov word [esp + 0x84], si
push 0xffffffffffffffff
mov dword [ecx + 0x18], eax
push esi
lea eax, [esp + 0xa4]
mov dword [ecx + 0x14], esi
push eax
mov word [ecx + 4], si
call fcn.00401dc0
mov ecx, edi
call fcn.004051e0
mov ecx, 9
call fcn.00406150
cmp dword [esp + 0x98], 8
jb 0x40495c
mov ecx, dword [esp + 0x84]
push ecx
call fcn.00420bda
add esp, 4
jmp 0x40495c
cmp eax, 0x465
ja 0x404e9f
je 0x404e74
cmp eax, 0x84
je 0x404dce
cmp eax, 0x113
jne case.0x4048fd.2
mov eax, dword [ebp + 0x10]
mov edx, 1
sub eax, edx
je 0x404dc3
sub eax, edx
je 0x404db8
sub eax, 2
jne case.0x4048fd.2
mov ecx, dword [edi + 0x2f8]
test ecx, ecx
je 0x404da7
mov eax, dword [ecx]
push edx
mov edx, dword [eax + 0x28]
call edx
mov eax, dword [edi + 4]
push 4
push eax
call dword [sym.imp.USER32.dll_KillTimer]
jmp case.0x4048fd.2
add dword [edi + 0x368], edx
jmp case.0x4048fd.2
add dword [edi + 0x364], edx
jmp case.0x4048fd.2
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
push ebx
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x404e11
call dword [sym.imp.USER32.dll_GetFocus]
cmp ebx, eax
je 0x404dfe
push ebx
call dword [sym.imp.USER32.dll_SetFocus]
mov edi, dword [sym.imp.USER32.dll_ShowCursor]
push 1
call edi
cmp eax, 2
jl 0x404e11
push 0
call edi
mov edx, dword [0x4531cc]
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x14]
push ecx
push edx
call edi
lea eax, [esp + 0x80]
push eax
push ebx
call edi
movzx ecx, si
lea edx, [esp + 0x38]
push edx
push ebx
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], ecx
shr esi, 0x10
call edi
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x3c]
push esi
push ecx
lea edx, [esp + 0x40]
add eax, 0x19
push edx
mov dword [esp + 0x50], eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
neg eax
add eax, 1
jmp 0x404970
call fcn.00405ae0
push 0
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 2
push ebx
call dword [sym.imp.USER32.dll_PostMessageW]
jmp case.0x4048fd.2
sub eax, 0x466
je 0x404fd7
sub eax, 1
jne case.0x4048fd.2
cmp dword [edi + 0x370], 0
je 0x404ecc
push str.WOIELOG___window_already_closed
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp case.0x4048fd.2
cmp dword [edi + 0x36c], 0
jne 0x404f28
push str.WOIELOG___set_m_bFlashIsLoadEnd_TRUE
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 1
push ebx
mov dword [edi + 0x36c], 1
call dword [sym.imp.USER32.dll_KillTimer]
push 0
push 0x3e8
push 2
push ebx
call dword [sym.imp.USER32.dll_SetTimer]
push edi
call fcn.00405700
mov eax, dword [edi + 4]
push 4
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [edi + 0x2f8]
test ecx, ecx
je 0x404f28
mov edx, dword [ecx]
mov eax, dword [edx + 0x28]
push 1
call eax
lea ecx, [esp + 0x80]
push ecx
push ebx
call dword [sym.imp.USER32.dll_GetClientRect]
push esi
lea ecx, [edi + 0x344]
call fcn.00401ca0
push esi
call fcn.00420bda
add esp, 4
push 1
lea edx, [edi + 0x334]
push edx
push ebx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [edi + 0x300]
test eax, eax
je 0x404f89
cmp dword [edi + 0x360], 0
je 0x404f89
mov dword [edi + 0x360], 0
mov eax, dword [eax + 4]
test eax, eax
je 0x404f89
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.00405c30
mov eax, dword [edi + 0x308]
test eax, eax
je case.0x4048fd.2
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je case.0x4048fd.2
mov eax, dword [edi + 0x308]
mov ecx, dword [eax + 4]
push 1
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
mov edx, dword [edi + 0x308]
mov eax, dword [edx + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.0x4048fd.2
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x44], esp
push esi
call fcn.004039c0
push edi
call fcn.00405f00
jmp case.0x4048fd.2