Function at 0x403d70
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0xc0
test eax, eax
push ebx
push ebp
push esi
push edi
mov ebx, ecx
jne 0x403d94
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0xc0
ret 0x14
mov ecx, dword [eax + 0x50]
mov esi, dword [esp + 0xd4]
mov dword [ebx + 0x1c], ecx
mov edx, dword [eax + 0x144]
mov ecx, dword [esp + 0xdc]
mov dword [ebx + 0x20], edx
mov edx, ecx
push str.DDRAW.DLL
shl edx, 5
sub edx, ecx
mov ecx, dword [eax + 0x4e4]
lea ecx, [ecx + edx*4]
mov edx, dword [ecx + 0xc]
mov dword [ebx + 0x10], edx
mov edx, dword [ecx + 8]
mov dword [ebx + 0x14], edx
mov ecx, dword [ecx + 0x54]
mov dword [ebx + 0x18], ecx
mov dword [ebx + 0xc], esi
mov edx, dword [eax + 0x140]
mov eax, dword [esp + 0xe4]
mov dword [ebx + 0x24], edx
mov dword [ebx + 8], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
test ebp, ebp
jne 0x403e11
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0xc0
ret 0x14
push str.DirectDrawCreateEx
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
jne 0x403e3a
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0xc0
ret 0x14
mov eax, dword [ebx + 8]
test eax, eax
jne 0x40411f
mov eax, dword [ebx + 0x2a4]
lea ebp, [ebx + 0x2a4]
test eax, eax
jne 0x403e65
mov ecx, dword [ebx + 0x20]
push 0
push 0x467600
push ebp
push ecx
call edi
jmp 0x403e69
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp]
test ecx, ecx
je 0x4043e1
mov edx, dword [ecx]
push 0x808
push 0
push ecx
call dword [edx + 0x50]
test eax, eax
jne 0x4043e1
mov eax, dword [ebp]
lea ecx, [ebx + 0x2a0]
push ecx
push 0x4675f0
mov edx, dword [eax]
push eax
call dword [edx]
test eax, eax
jne 0x4043e1
mov ecx, 0x1f
lea edi, [esp + 0x44]
rep stosd dword es:[edi], eax
mov eax, dword [ebp]
lea esi, [ebx + 0x2a8]
push 0
lea edx, [esp + 0x48]
mov dword [esp + 0x48], 0x7c
mov dword [esp + 0x4c], 1
mov dword [esp + 0xb0], 0x4200
mov ecx, dword [eax]
push esi
push edx
push eax
call dword [ecx + 0x18]
test eax, eax
jne 0x4043e1
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x403fc7
push 0xc00000
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov eax, dword [ebx + 0xc]
mov edi, dword [sym.imp.USER32.dll_SetWindowPos]
push 8
push 0xf0
push 0x140
push 0
push 0
push 0xfffffffffffffffe
push eax
call edi
mov edx, dword [ebx + 0xc]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebx + 0xc]
lea eax, [esp + 0xc0]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebx + 0x10]
mov edx, dword [esp + 0xc8]
mov ecx, dword [esp + 0x1c]
sub eax, edx
mov edx, dword [esp + 0x14]
push 0x40
sub eax, edx
add eax, ecx
mov ecx, dword [ebx + 0x14]
sub ecx, dword [esp + 0xd0]
sub ecx, dword [esp + 0x1c]
add ecx, dword [esp + 0x24]
push ecx
mov ecx, dword [ebx + 0xc]
push eax
mov eax, dword [esp + 0x24]
push eax
push edx
push 0xfffffffffffffffe
push ecx
call edi
mov eax, dword [ebp]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edx, dword [eax]
push 0
push eax
call dword [edx + 0x10]
neg eax
sbb eax, eax
neg eax
jne 0x4043e1
mov eax, dword [esp + 0x10]
mov ecx, dword [ebx + 0xc]
push ecx
push 0
mov edx, dword [eax]
push eax
call dword [edx + 0x20]
mov eax, dword [esi]
mov ecx, dword [esp + 0x10]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x70]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x403fc7
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov edx, dword [ebx + 0x24]
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x44]
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x10]
neg edx
sbb edx, edx
mov dword [esp + 0x4c], ecx
and edx, 0x3800
lea ecx, [ebx + 0x2ac]
mov dword [esp + 0x50], eax
mov eax, dword [ebp]
push 0
mov esi, 0x7c
add edx, 0x2840
push ecx
lea ecx, [esp + 0x4c]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], 7
mov dword [esp + 0xb4], edx
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x18]
test eax, eax
jne 0x4043e1
mov eax, dword [ebx + 0x18]
lea ecx, [esp + 0x24]
cmp eax, 0x10
mov eax, dword [ebx + 0x2a0]
push ecx
mov edx, dword [eax]
jbe 0x404083
mov ecx, dword [ebx + 0x1c]
push 0x404420
push ecx
push eax
call dword [edx + 0x18]
cmp dword [esp + 0x30], 0x18
je 0x404090
mov eax, dword [ebx + 0x2a0]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [ebx + 0x1c]
mov edx, dword [eax]
push 0x4043f0
push ecx
push eax
call dword [edx + 0x18]
cmp dword [esp + 0x30], 0x20
je 0x404090
mov eax, dword [ebx + 0x2a0]
lea ecx, [esp + 0x24]
push ecx
mov edx, dword [eax]
mov ecx, dword [ebx + 0x1c]
push 0x403d40
push ecx
push eax
call dword [edx + 0x18]
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x44]
mov edx, dword [ebx + 0x10]
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 0x24]
mov eax, dword [ebx + 0x14]
neg ecx
sbb ecx, ecx
mov ebp, dword [ebp]
and ecx, 0x3800
mov dword [esp + 0x44], esi
add ecx, 0x20800
lea esi, [esp + 0x24]
mov dword [esp + 0xac], ecx
mov ecx, 8
lea edi, [esp + 0x8c]
mov dword [esp + 0x48], 0x1007
mov dword [esp + 0x50], edx
mov dword [esp + 0x4c], eax
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp]
lea esi, [ebx + 0x2b0]
push 0
lea eax, [esp + 0x48]
push esi
push eax
push ebp
call dword [edx + 0x18]
test eax, eax
jne 0x4043e1
mov eax, dword [ebx + 0x2ac]
mov edx, dword [esi]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
test eax, eax
jne 0x4043e1
jmp 0x4043c3
push 3
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [ebx + 0x2a4]
lea ebp, [ebx + 0x2a4]
test eax, eax
jne 0x404162
mov eax, dword [ebx + 0x20]
push 0
push 0x467600
push ebp
push eax
call edi
jmp 0x404166
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp]
test ecx, ecx
je 0x4043e1
mov eax, dword [ebx + 0xc]
mov edx, dword [ecx]
push 0x813
push eax
push ecx
call dword [edx + 0x50]
test eax, eax
jne 0x4043e1
mov eax, dword [ebp]
lea ecx, [ebx + 0x2a0]
push ecx
push 0x4675f0
mov edx, dword [eax]
push eax
call dword [edx]
test eax, eax
jne 0x4043e1
mov edx, dword [ebx + 0x18]
mov eax, dword [ebp]
push 0
push 0
mov ecx, dword [eax]
push edx
mov edx, dword [ebx + 0x14]
push edx
mov edx, dword [ebx + 0x10]
push edx
push eax
call dword [ecx + 0x54]
test eax, eax
jne 0x4043e1
mov ecx, 0x1f
lea edi, [esp + 0x44]
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x24]
mov esi, 0x7c
test eax, eax
mov dword [esp + 0x44], esi
je 0x404208
mov edx, dword [esp + 0xe4]
xor eax, eax
test edx, edx
setne al
inc eax
mov dword [esp + 0x48], 0x21
mov dword [esp + 0xac], 0x2218
mov dword [esp + 0x58], eax
jmp 0x40421b
mov dword [esp + 0x48], 1
mov dword [esp + 0xac], 0x200
mov eax, dword [ebp]
lea edi, [ebx + 0x2a8]
push 0
lea edx, [esp + 0x48]
mov ecx, dword [eax]
push edi
push edx
push eax
call dword [ecx + 0x18]
test eax, eax
jne 0x4043e1
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x40427b
xor eax, eax
lea edx, [esp + 0x14]
mov dword [esp + 0x14], eax
mov dword [esp + 0x14], 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, dword [edi]
lea edi, [ebx + 0x2ac]
mov ecx, dword [eax]
push edi
push edx
push eax
call dword [ecx + 0x30]
mov edi, dword [edi]
mov esi, eax
push edi
mov eax, dword [edi]
call dword [eax + 4]
jmp 0x4042c6
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x44]
mov edx, dword [ebx + 0x14]
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 0x10]
mov eax, dword [ebp]
mov dword [esp + 0x50], ecx
lea ecx, [ebx + 0x2ac]
push 0
push ecx
lea ecx, [esp + 0x4c]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], 7
mov dword [esp + 0x54], edx
mov dword [esp + 0xb4], 0x2840
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x18]
mov esi, eax
test esi, esi
je 0x4042d9
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc0
ret 0x14
mov eax, dword [ebx + 0x18]
lea ecx, [esp + 0x24]
cmp eax, 0x10
mov eax, dword [ebx + 0x2a0]
push ecx
mov edx, dword [eax]
jbe 0x404330
mov ecx, dword [ebx + 0x1c]
push 0x404420
push ecx
push eax
call dword [edx + 0x18]
cmp dword [esp + 0x30], 0x18
je 0x40433d
mov eax, dword [ebx + 0x2a0]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [ebx + 0x1c]
mov edx, dword [eax]
push 0x4043f0
push ecx
push eax
call dword [edx + 0x18]
cmp dword [esp + 0x30], 0x20
je 0x40433d
mov eax, dword [ebx + 0x2a0]
lea ecx, [esp + 0x24]
push ecx
mov edx, dword [eax]
mov ecx, dword [ebx + 0x1c]
push 0x403d40
push ecx
push eax
call dword [edx + 0x18]
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x44]
mov edx, dword [ebx + 0x10]
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 0x24]
mov eax, dword [ebx + 0x14]
neg ecx
sbb ecx, ecx
mov ebp, dword [ebp]
and ecx, 0x3800
lea esi, [esp + 0x24]
add ecx, 0x20800
lea edi, [esp + 0x8c]
mov dword [esp + 0xac], ecx
mov ecx, 8
mov dword [esp + 0x44], 0x7c
mov dword [esp + 0x48], 0x1007
mov dword [esp + 0x50], edx
mov dword [esp + 0x4c], eax
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp]
lea esi, [ebx + 0x2b0]
push 0
lea eax, [esp + 0x48]
push esi
push eax
push ebp
call dword [edx + 0x18]
test eax, eax
jne 0x4043e1
mov eax, dword [ebx + 0x2ac]
mov edx, dword [esi]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
test eax, eax
jne 0x4043e1
mov eax, dword [ebx + 0x2a0]
lea edx, [ebx + 0x29c]
push edx
mov edx, dword [ebx + 0x2ac]
mov ecx, dword [eax]
push edx
mov edx, dword [ebx + 0x1c]
push edx
push eax
call dword [ecx + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc0
ret 0x14