Function at 0x10040340
Capabilities:
Hide graphical window
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x70
push ebx
push edi
mov edi, eax
lea ecx, [edi + 0x770]
mov dword [esi + 0x26c], edi
mov dword [esi + 0x270], 0
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
mov dword [esi + 0x274], eax
mov eax, dword [esi + 0x26c]
mov ebx, dword [eax + 0x810]
mov eax, dword [eax + 0x814]
mov edx, dword [edi]
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 0x38]
mov ecx, edi
mov dword [esp + 0x18], ebx
call eax
mov ecx, dword [eax]
mov dword [esp + 0x30], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x34], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x14], eax
mov dword [esp + 0x38], ecx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x34], eax
add eax, dword [esp + 0x1c]
xor edx, edx
cmp ebx, edx
mov dword [esp + 0x3c], eax
jle 0x100403ca
mov ecx, dword [esp + 0x30]
add ecx, ebx
mov dword [esp + 0x38], ecx
sub ecx, dword [esp + 0x30]
sub eax, dword [esp + 0x34]
lea ebx, [edi + 0x740]
mov dword [esp + 8], edx
mov dword [esp + 0xc], edx
mov edx, dword [ebx]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
mov eax, dword [edx + 0xc]
mov ecx, ebx
call eax
test eax, eax
jle 0x1004044e
mov edx, dword [ebx]
mov eax, dword [esp + 0xc]
mov edx, dword [edx]
push eax
mov ecx, ebx
call edx
mov edx, dword [eax]
mov dword [esp + 0x10], eax
mov ecx, eax
mov eax, dword [edx + 0xe4]
call eax
test al, al
je 0x1004043b
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 0x130]
push eax
mov eax, dword [esp + 0x24]
push eax
lea eax, [esp + 0x30]
push eax
call edx
mov eax, dword [esp + 0x2c]
add dword [esp + 8], eax
mov edx, dword [ebx]
mov eax, dword [edx + 0xc]
inc dword [esp + 0xc]
mov ecx, ebx
call eax
cmp dword [esp + 0xc], eax
jl 0x100403f5
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x1c]
add eax, 4
cmp eax, ecx
mov dword [esp + 8], eax
jl 0x10040463
mov eax, ecx
mov ecx, dword [esp + 0x34]
mov edx, dword [edi]
add eax, ecx
mov dword [esp + 0x3c], eax
mov eax, dword [edx + 0x1c]
mov ecx, edi
call eax
mov edx, dword [eax]
mov ebx, dword [sym.imp.USER32.dll_MapWindowPoints]
push 2
lea ecx, [esp + 0x34]
push ecx
push 0
push edx
call ebx
xor eax, eax
lea ecx, [esp + 0x50]
push ecx
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov eax, dword [esi + 4]
push 1
push eax
mov dword [esp + 0x5c], 0x28
call dword [sym.imp.USER32.dll_MonitorFromWindow]
push eax
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov ecx, dword [esp + 0x3c]
cmp ecx, dword [esp + 0x4c]
jle 0x10040542
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov dword [esp + 0x30], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x18]
test edx, edx
jle 0x1004050d
add ecx, edx
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x1c]
cmp ecx, edx
jl 0x1004051b
mov ecx, edx
mov edx, dword [eax + 4]
sub edx, ecx
mov dword [esp + 0x34], edx
mov eax, dword [eax + 4]
mov edx, dword [edi]
mov dword [esp + 0x3c], eax
mov eax, dword [edx + 0x1c]
mov ecx, edi
call eax
mov edx, dword [eax]
push 2
lea ecx, [esp + 0x34]
push ecx
push 0
push edx
call ebx
mov eax, dword [edi]
mov edx, dword [eax + 0x1c]
mov ecx, edi
call edx
mov eax, dword [eax]
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
mov edx, dword [esi]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x34]
sub edi, eax
sub ebx, ecx
mov dword [esp + 0x10], eax
mov eax, dword [edx + 8]
mov dword [esp + 0xc], ecx
mov ecx, esi
call eax
test eax, eax
je 0x10040585
mov ecx, esi
call sym.DTLUI.dll_public:_bool___thiscall_DuiLib::CWindowWnd::RegisterSuperclass_void_
test al, al
je 0x100405d7
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
test eax, eax
jne 0x1004059d
mov ecx, esi
call sym.DTLUI.dll_public:_bool___thiscall_DuiLib::CWindowWnd::RegisterWindowClass_void_
test al, al
je 0x100405d7
mov ecx, dword [sym.DTLUI.dll_struct_HINSTANCE____DuiLib::CPaintManagerUI::m_hInstance]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push esi
push ecx
mov ecx, dword [esp + 0x14]
push 0
push edx
mov edx, dword [esi]
push edi
push ebx
push eax
mov eax, dword [edx + 4]
push ecx
push SysReAllocString
push 0
mov ecx, esi
call eax
push eax
push 0x80
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esi + 4], eax
mov edi, dword [esi + 4]
mov ebx, dword [sym.imp.USER32.dll_GetParent]
push edi
call ebx
test eax, eax
je 0x100405f3
push edi
call ebx
mov edi, eax
push edi
call ebx
test eax, eax
jne 0x100405e7
mov ecx, dword [esi + 4]
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 1
push 0x86
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi + 0x26c]
mov edx, dword [eax + 0x770]
lea ecx, [eax + 0x770]
mov eax, dword [edx + 4]
call eax
push eax
mov eax, esi
call fcn.10040ca0
pop edi
pop ebx
mov esp, ebp
pop ebp
ret