Function at 0x402f00
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4cc
mov eax, dword [ebp + 8]
mov dword [0x4377cc], eax
push str.D3Z:Resize_Window_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [0x436fac], 0
jne 0x402f2c
xor eax, eax
jmp 0x4034c5
mov dword [ebp - 0x4b0], 0
cmp dword [0x4367ec], 0
je 0x402f49
mov dword [ebp - 0x4b0], 1
cmp dword [0x436c18], 0
je 0x402f6d
mov ecx, dword [0x436c18]
mov edx, dword [ecx]
mov eax, dword [0x436c18]
push eax
call dword [edx + 8]
mov dword [0x436c18], 0
cmp dword [0x436c10], 0
je 0x402f91
mov ecx, dword [0x436c10]
mov edx, dword [ecx]
mov eax, dword [0x436c10]
push eax
call dword [edx + 8]
mov dword [0x436c10], 0
cmp dword [0x436c08], 0
je 0x402fb5
mov ecx, dword [0x436c08]
mov edx, dword [ecx]
mov eax, dword [0x436c08]
push eax
call dword [edx + 8]
mov dword [0x436c08], 0
cmp dword [0x4367e4], 0
je 0x402fd9
mov ecx, dword [0x4367e4]
mov edx, dword [ecx]
mov eax, dword [0x4367e4]
push eax
call dword [edx + 8]
mov dword [0x4367e4], 0
cmp dword [0x436800], 0
je 0x402ffd
mov ecx, dword [0x436800]
mov edx, dword [ecx]
mov eax, dword [0x436800]
push eax
call dword [edx + 8]
mov dword [0x436800], 0
cmp dword [0x4367fc], 0
je 0x403021
mov ecx, dword [0x4367fc]
mov edx, dword [ecx]
mov eax, dword [0x4367fc]
push eax
call dword [edx + 8]
mov dword [0x4367fc], 0
cmp dword [0x4367f8], 0
je 0x403045
mov ecx, dword [0x4367f8]
mov edx, dword [ecx]
mov eax, dword [0x4367f8]
push eax
call dword [edx + 8]
mov dword [0x4367f8], 0
cmp dword [0x436c04], 0
je 0x403069
mov ecx, dword [0x436c04]
mov edx, dword [ecx]
mov eax, dword [0x436c04]
push eax
call dword [edx + 8]
mov dword [0x436c04], 0
cmp dword [0x4367f4], 0
je 0x40308d
mov ecx, dword [0x4367f4]
mov edx, dword [ecx]
mov eax, dword [0x4367f4]
push eax
call dword [edx + 8]
mov dword [0x4367f4], 0
cmp dword [0x4367e0], 0
je 0x4030b1
mov ecx, dword [0x4367e0]
mov edx, dword [ecx]
mov eax, dword [0x4367e0]
push eax
call dword [edx + 8]
mov dword [0x4367e0], 0
mov dword [0x436fb0], 1
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x340], eax
push 0xc
mov edx, dword [ebp - 0x340]
push edx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [0x4377c8], eax
mov eax, dword [ebp - 0x340]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
push 0x436c28
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov dword [ebp - 0x338], 0
mov eax, dword [ebp - 0x338]
mov dword [ebp - 0x33c], eax
lea ecx, [ebp - 0x33c]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [0x436c28]
add eax, dword [ebp - 0x33c]
mov dword [0x436c28], eax
mov ecx, dword [0x436c2c]
add ecx, dword [ebp - 0x338]
mov dword [0x436c2c], ecx
mov edx, dword [0x436c30]
add edx, dword [ebp - 0x33c]
mov dword [0x436c30], edx
mov eax, dword [0x436c34]
add eax, dword [ebp - 0x338]
mov dword [0x436c34], eax
mov ecx, dword [0x436c30]
sub ecx, dword [0x436c28]
mov dword [0x4377c0], ecx
mov edx, dword [0x436c34]
sub edx, dword [0x436c2c]
mov dword [0x4377c4], edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [0x4377c4]
push edx
mov eax, dword [0x4377c0]
push eax
push str._D3z:_d__d___param__d__d__n
lea ecx, [ebp - 0x15c]
push ecx
call fcn.00424218
add esp, 0x18
lea edx, [ebp - 0x15c]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0
push 0x4367e0
push 0
call sub.DDRAW.dll_DirectDrawCreate
mov dword [ebp - 0x4b4], eax
cmp dword [ebp - 0x4b4], 0
je 0x403206
push 0x446
push 0x4317cc
mov eax, dword [ebp - 0x4b4]
push eax
call fcn.00403ead
add esp, 0xc
call fcn.004011f7
xor eax, eax
jmp 0x4034c5
push 0x16c
push 0
lea ecx, [ebp - 0x2c8]
push ecx
call fcn.004241c0
add esp, 0xc
mov dword [ebp - 0x2c8], 0x16c
push 0x16c
push 0
lea edx, [ebp - 0x4ac]
push edx
call fcn.004241c0
add esp, 0xc
mov dword [ebp - 0x4ac], 0x16c
lea eax, [ebp - 0x4ac]
push eax
lea ecx, [ebp - 0x2c8]
push ecx
mov edx, dword [0x4367e0]
mov eax, dword [edx]
mov ecx, dword [0x4367e0]
push ecx
call dword [eax + 0x2c]
mov dword [0x436c24], 1
push 8
mov edx, dword [ebp + 8]
push edx
mov eax, dword [0x4367e0]
mov ecx, dword [eax]
mov edx, dword [0x4367e0]
push edx
call dword [ecx + 0x50]
mov dword [ebp - 0x4b8], eax
cmp dword [ebp - 0x4b8], 0
je 0x4032bb
push 0x459
push 0x4317ec
mov eax, dword [ebp - 0x4b8]
push eax
call fcn.00403ead
add esp, 0xc
call fcn.004011f7
xor eax, eax
jmp 0x4034c5
push 0x6c
push 0
lea ecx, [ebp - 0x334]
push ecx
call fcn.004241c0
add esp, 0xc
mov dword [ebp - 0x334], 0x6c
mov dword [ebp - 0x330], 1
mov dword [ebp - 0x2cc], 0x200
push 0
push 0x4367f4
lea edx, [ebp - 0x334]
push edx
mov eax, dword [0x4367e0]
mov ecx, dword [eax]
mov edx, dword [0x4367e0]
push edx
call dword [ecx + 0x18]
mov dword [ebp - 0x4bc], eax
cmp dword [ebp - 0x4bc], 0
je 0x40333f
push 0x462
push 0x43180c
mov eax, dword [ebp - 0x4bc]
push eax
call fcn.00403ead
add esp, 0xc
call fcn.004011f7
xor eax, eax
jmp 0x4034c5
mov dword [ebp - 0x330], 7
mov ecx, dword [0x4377c0]
mov dword [ebp - 0x328], ecx
mov edx, dword [0x4377c4]
mov dword [ebp - 0x32c], edx
mov dword [ebp - 0x2cc], 0x2040
push 0
push 0x4367f8
lea eax, [ebp - 0x334]
push eax
mov ecx, dword [0x4367e0]
mov edx, dword [ecx]
mov eax, dword [0x4367e0]
push eax
call dword [edx + 0x18]
mov dword [ebp - 0x4c0], eax
cmp dword [ebp - 0x4c0], 0
je 0x4033be
push 0x46c
push 0x43182c
mov ecx, dword [ebp - 0x4c0]
push ecx
call fcn.00403ead
add esp, 0xc
call fcn.004011f7
xor eax, eax
jmp 0x4034c5
push 0
push 0x436c04
push 0
mov edx, dword [0x4367e0]
mov eax, dword [edx]
mov ecx, dword [0x4367e0]
push ecx
call dword [eax + 0x10]
mov dword [ebp - 0x4c4], eax
cmp dword [ebp - 0x4c4], 0
je 0x40340d
push 0x470
push 0x43184c
mov edx, dword [ebp - 0x4c4]
push edx
call fcn.00403ead
add esp, 0xc
call fcn.004011f7
xor eax, eax
jmp 0x4034c5
mov eax, dword [ebp + 8]
push eax
push 0
mov ecx, dword [0x436c04]
mov edx, dword [ecx]
mov eax, dword [0x436c04]
push eax
call dword [edx + 0x20]
mov dword [ebp - 0x4c8], eax
cmp dword [ebp - 0x4c8], 0
je 0x403455
push 0x471
push 0x43186c
mov ecx, dword [ebp - 0x4c8]
push ecx
call fcn.00403ead
add esp, 0xc
call fcn.004011f7
xor eax, eax
jmp 0x4034c5
mov edx, dword [0x436c04]
push edx
mov eax, dword [0x4367f4]
mov ecx, dword [eax]
mov edx, dword [0x4367f4]
push edx
call dword [ecx + 0x70]
mov dword [ebp - 0x4cc], eax
cmp dword [ebp - 0x4cc], 0
je 0x40349e
push 0x472
push 0x43188c
mov eax, dword [ebp - 0x4cc]
push eax
call fcn.00403ead
add esp, 0xc
call fcn.004011f7
xor eax, eax
jmp 0x4034c5
mov dword [0x436fac], 1
cmp dword [ebp - 0x4b0], 0
je 0x4034b6
call fcn.00401c72
mov dword [0x436fb0], 0
mov eax, 1
mov esp, ebp
pop ebp
ret