Function at 0x4031f0
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [0x76e128]
mov eax, ecx
shl eax, 6
add eax, ecx
sub esp, 0xb0
push 0
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
push 0x409268
lea ecx, [eax + eax*4]
mov edx, dword [ecx*4 + 0x76e25c]
push 0x76e0a0
push edx
call sub.DDRAW.dll_DirectDrawCreateEx
mov al, byte [0x7ed28c]
test al, al
mov eax, dword [0x76e0a0]
mov ecx, dword [eax]
jne 0x403268
mov edx, dword [0x76e09c]
push 0x11
push edx
push eax
call dword [ecx + 0x50]
mov edx, dword [0x7ed264]
mov eax, dword [0x76e0a0]
mov ecx, dword [eax]
push 0
push 0
push edx
mov edx, dword [0x7ed218]
push edx
mov edx, dword [0x7ed21c]
push edx
push eax
call dword [ecx + 0x54]
jmp 0x403275
mov edx, dword [0x76e09c]
push 8
push edx
push eax
call dword [ecx + 0x50]
push esi
push edi
xor eax, eax
mov ecx, 0x1f
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov al, byte [0x7ed28c]
test al, al
mov esi, 0x7c
mov dword [esp + 0x1c], esi
jne 0x4032b3
mov dword [esp + 0x20], 0x21
mov dword [esp + 0x84], 0x2218
mov dword [esp + 0x30], 1
jmp 0x4032c6
mov dword [esp + 0x20], 1
mov dword [esp + 0x84], 0x200
mov eax, dword [0x76e0a0]
mov ecx, dword [eax]
push 0
push 0x7ed294
lea edx, [esp + 0x24]
push edx
push eax
call dword [ecx + 0x18]
mov al, byte [0x7ed28c]
test al, al
jne 0x40330e
mov eax, dword [0x7ed294]
push 0x7ed298
lea edx, [esp + 0x88]
push edx
mov dword [esp + 0x8c], 0x2000
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
jmp 0x403424
xor eax, eax
mov ecx, 0x1f
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov ecx, dword [0x76e09c]
lea eax, [esp + 0xc]
push eax
push ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], 7
mov dword [esp + 0x8c], 0x2040
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [0x76e09c]
mov edi, dword [sym.imp.USER32.dll_ClientToScreen]
lea edx, [esp + 0xc]
push edx
push eax
call edi
mov edx, dword [0x76e09c]
lea ecx, [esp + 0x14]
push ecx
push edx
call edi
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
sub eax, ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x28], eax
sub ecx, dword [esp + 0x10]
mov eax, dword [0x76e0a0]
push 0
mov dword [esp + 0x28], ecx
mov edx, dword [eax]
push 0x7ed298
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [edx + 0x18]
mov eax, dword [0x76e0a0]
mov edx, dword [eax]
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push eax
call dword [edx + 0x10]
mov ecx, dword [0x76e09c]
mov eax, dword [esp + 8]
mov edx, dword [eax]
push ecx
push 0
push eax
call dword [edx + 0x20]
mov ecx, dword [esp + 8]
mov eax, dword [0x7ed294]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x70]
mov eax, dword [esp + 8]
mov edx, dword [eax]
push eax
call dword [edx + 8]
xor eax, eax
mov ecx, 0x1f
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov eax, dword [0x76e0a0]
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
cmp dword [esp + 0x70], 8
ja 0x403407
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
sub eax, ecx
mov ecx, dword [esp + 0x18]
mov dword [0x7ed21c], eax
sub ecx, dword [esp + 0x10]
mov dword [0x7ed218], ecx
xor eax, eax
mov ecx, 0x1f
mov edi, 0x76e0a8
rep stosd dword es:[edi], eax
mov eax, dword [0x7ed298]
push 0x76e0a8
mov dword [0x76e0a8], esi
mov edx, dword [eax]
push eax
call dword [edx + 0x58]
mov eax, dword [0x76e0a0]
mov ecx, dword [eax]
push 0x76e138
push 0x409258
push eax
call dword [ecx]
mov ecx, dword [0x76e128]
mov edx, dword [0x76e138]
mov edi, dword [edx]
lea eax, [esp + 0x98]
push eax
mov eax, ecx
shl eax, 6
add eax, ecx
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
lea ecx, [eax + eax*4]
mov eax, dword [ecx*4 + 0x76e168]
push 0x403550
push eax
push edx
call dword [edi + 0x18]
mov edx, dword [0x76e0b0]
xor eax, eax
mov ecx, 0x1f
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov ecx, dword [0x76e0b4]
mov eax, dword [0x76e0a0]
push 0
mov dword [esp + 0x28], edx
mov dword [esp + 0x20], esi
mov dword [esp + 0x2c], ecx
push 0x7ed2a0
lea edx, [esp + 0x24]
mov dword [esp + 0x28], 0x1007
mov dword [esp + 0x8c], 0x24000
mov ecx, 8
lea esi, [esp + 0xa0]
lea edi, [esp + 0x6c]
push edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov edx, dword [0x7ed2a0]
mov eax, dword [0x7ed298]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
mov ecx, dword [0x76e128]
mov eax, dword [0x7ed298]
mov edx, dword [0x76e138]
mov esi, dword [edx]
push 0x76e098
push eax
mov eax, ecx
shl eax, 6
add eax, ecx
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
lea ecx, [eax + eax*4]
mov eax, dword [ecx*4 + 0x76e168]
push eax
push edx
call dword [esi + 0x10]
pop edi
pop esi
add esp, 0xb0
ret