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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x466630
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
mov dword [ebp - 0x74], ecx
mov eax, dword [ebp + 8]
sub eax, 0x400
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 1
jne 0x4091db
mov ecx, dword [ebp - 0x74]
cmp dword [ecx + 0xa8], 0
je 0x408f79
push 0
mov edx, dword [ebp - 0x74]
mov eax, dword [edx + 0x98]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
mov ecx, dword [ebp - 0x74]
mov edx, dword [ecx + 0x98]
push edx
call dword [sym.imp.USER32.dll_SetParent]
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax + 0xa8]
mov edx, dword [ebp - 0x74]
mov eax, dword [edx + 0xa8]
mov edx, dword [ecx]
mov ecx, eax
call dword [edx + 0x44]
mov eax, dword [ebp - 0x74]
mov dword [eax + 0xa8], 0
mov ecx, dword [ebp - 0x74]
mov dword [ecx + 0x98], 0
call dword [0x4a8ed8]
mov edx, dword [ebp - 0x74]
mov dword [edx + 0xa8], eax
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax + 0x1c]
push ecx
mov edx, dword [ebp - 0x74]
mov eax, dword [edx + 0xa8]
mov ecx, dword [ebp - 0x74]
mov ecx, dword [ecx + 0xa8]
mov edx, dword [eax]
call dword [edx + 4]
mov dword [ebp - 0x20], eax
push 0
push 0
push 0x2000000
mov ecx, dword [ebp - 0x74]
call fcn.00458aa1
push 0
push 0
push 0x4000000
mov ecx, dword [ebp - 0x74]
call fcn.00458aa1
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x74]
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
push 4
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x1c]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
lea eax, [ebp - 0x38]
push eax
call fcn.0040aac0
add esp, 4
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 4], 0
push 0x472874
mov edx, dword [ebp - 0x7c]
push edx
lea eax, [ebp - 0x3c]
push eax
call fcn.00404660
add esp, 0xc
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x48], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x48]
mov eax, dword [edx]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0x74]
mov eax, dword [edx + 0xa8]
mov ecx, dword [ebp - 0x74]
mov ecx, dword [ecx + 0xa8]
mov edx, dword [eax]
call dword [edx + 8]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.00401700
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00401700
lea eax, [ebp - 0x40]
push eax
call fcn.0042e4c0
add esp, 4
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x88], ecx
mov dword [ebp - 4], 2
push 0x472888
mov edx, dword [ebp - 0x88]
push edx
lea eax, [ebp - 0x44]
push eax
call fcn.00404660
add esp, 0xc
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x8c]
mov dword [ebp - 0x58], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x58]
mov eax, dword [edx]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
push ecx
mov edx, dword [ebp - 0x74]
mov eax, dword [edx + 0xa8]
mov ecx, dword [ebp - 0x74]
mov ecx, dword [ecx + 0xa8]
mov edx, dword [eax]
call dword [edx + 0xc]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.00401700
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00401700
push 1
push 0x472890
push 0x472898
mov ecx, 0x4a8f58
call fcn.00460913
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x74]
mov edx, dword [ecx + 0xa8]
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax + 0xa8]
mov edx, dword [edx]
call dword [edx + 0x48]
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax + 0x15c]
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x68]
push edx
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax + 0xa8]
mov edx, dword [ebp - 0x74]
mov eax, dword [edx + 0xa8]
mov edx, dword [ecx]
mov ecx, eax
call dword [edx + 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax + 0xa8]
mov edx, dword [ebp - 0x74]
mov eax, dword [edx + 0xa8]
mov edx, dword [ecx]
mov ecx, eax
call dword [edx + 0x2c]
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x20]
mov dword [eax + 0x98], ecx
push 0
mov edx, dword [ebp - 0x74]
add edx, 0x168
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [ebp - 0x74]
add ecx, 0x70
call sym.DWGView.exe_public:_char____thiscall_WArchive::GetBuffer_void_
test eax, eax
jne 0x4091d6
push 0x4728a0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x24]
push eax
push 0
push 0x7f4
mov ecx, dword [ebp - 0x74]
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x409333
cmp dword [ebp + 8], 2
jne 0x409244
mov eax, dword [ebp - 0x74]
cmp dword [eax + 0x98], 0
je 0x40923f
mov ecx, dword [ebp - 0x74]
mov edx, dword [ecx + 0x98]
push edx
call fcn.00456a24
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], 0
cmp dword [ebp - 0x6c], 0
jne 0x409218
mov dword [ebp - 0x90], 0
jmp 0x409224
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x90], ecx
push 0x105
mov edx, dword [ebp - 0x90]
push edx
push 0
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_RedrawWindow]
jmp 0x409333
cmp dword [ebp + 8], 3
jne 0x409274
mov edx, dword [ebp - 0x74]
cmp dword [edx + 0xa8], 0
je 0x40926f
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax + 0xa8]
mov edx, dword [ebp - 0x74]
mov eax, dword [edx + 0xa8]
mov edx, dword [ecx]
mov ecx, eax
call dword [edx + 0x14]
jmp 0x409333
cmp dword [ebp + 8], 4
jne 0x4092cc
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x30]
mov ax, word [edx]
mov word [ebp - 0x2c], ax
mov ecx, dword [ebp - 0x74]
cmp dword [ecx + 0xa8], 0
je 0x4092ca
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 4]
push edx
mov ax, word [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x74]
mov eax, dword [edx + 0xa8]
mov ecx, dword [ebp - 0x74]
mov ecx, dword [ecx + 0xa8]
mov edx, dword [eax]
call dword [edx + 0x28]
jmp 0x409333
cmp dword [ebp + 8], 5
jne 0x409333
mov eax, dword [ebp - 0x74]
cmp dword [eax + 0xa8], 0
je 0x409333
push 0
mov ecx, dword [ebp - 0x74]
mov edx, dword [ecx + 0x98]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax + 0x98]
push ecx
call dword [sym.imp.USER32.dll_SetParent]
mov edx, dword [ebp - 0x74]
mov eax, dword [edx + 0xa8]
mov ecx, dword [ebp - 0x74]
mov ecx, dword [ecx + 0xa8]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 0x74]
mov dword [eax + 0xa8], 0
mov ecx, dword [ebp - 0x74]
mov dword [ecx + 0x98], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc