Function at 0x300c565b
Capabilities:
Capture screenshot
Check os version
Resolve function by parsing pe exports

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x3bc
push ebx
push esi
push edi
mov esi, ecx
call fcn.300c4fb5
mov eax, dword [esi + 0xc]
xor ebx, ebx
cmp dword [eax + 0xe18], ebx
je 0x300c5e7a
mov ecx, dword [eax + 0xa30]
push str.safefullscreen
call fcn.3008862e
cmp eax, ebx
mov dword [ebp + 0x5c], eax
jne 0x300c578e
cmp byte [0x302a647c], bl
jne 0x300c578e
mov edi, 0x9c
push edi
lea eax, [ebp - 0xfc]
push ebx
push eax
mov byte [0x302a647c], 1
mov dword [ebp + 0x68], 1
call fcn.3022b3a0
add esp, 0xc
lea eax, [ebp - 0xfc]
mov dword [ebp - 0xfc], edi
mov edi, dword [sym.imp.kernel32.dll_GetVersionExA]
push eax
call edi
test eax, eax
jne 0x300c5700
lea eax, [ebp - 0xfc]
push eax
mov dword [ebp - 0xfc], 0x94
call edi
test eax, eax
je 0x300c578e
cmp dword [ebp - 0xec], 2
jb 0x300c5729
jne 0x300c5731
cmp dword [ebp - 0xf8], 5
jae 0x300c5717
mov dword [ebp + 0x68], ebx
cmp dword [ebp - 0xf8], 6
jb 0x300c572c
mov byte [0x302a647d], 1
jmp 0x300c572c
mov dword [ebp + 0x68], ebx
cmp dword [ebp + 0x68], ebx
je 0x300c578e
mov edi, dword [sym.imp.kernel32.dll_LoadLibraryA]
push str.ddraw.dll
call edi
cmp eax, ebx
mov dword [0x302a6478], eax
je 0x300c576d
push str.DirectDrawCreateEx
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
je 0x300c576d
push str.DirectDrawCreate
push dword [0x302a6478]
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x302a646c], eax
push str.d3d8.dll
call edi
cmp eax, ebx
mov dword [0x302a6474], eax
je 0x300c578e
push str.Direct3DCreate8
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x302a6470], eax
cmp byte [0x302a647d], bl
je 0x300c57a6
mov dword [0x30278370], 1
mov dword [0x30278374], ebx
mov dword [ebp + 0x68], ebx
mov eax, dword [ebp + 0x68]
cmp dword [eax*4 + 0x30278370], ebx
jne 0x300c5bf8
cmp dword [ebp + 0x5c], ebx
jne 0x300c5bf8
cmp dword [0x302a646c], ebx
je 0x300c5bf8
cmp dword [ebp + 0x78], 0x800
jge 0x300c5bf8
cmp dword [ebp + 0x7c], 0x800
jge 0x300c5bf8
push 0x18
lea eax, [ebp - 0x60]
push ebx
push eax
call fcn.3022b3a0
mov ecx, dword [esi + 0xc]
add esp, 0xc
push 1
call fcn.300bfe4e
push eax
call dword [sym.imp.USER32.dll_MonitorFromWindow]
push str.DirectDrawEnumerateExA
push dword [0x302a6478]
mov dword [ebp - 0x60], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
cmp eax, ebx
je 0x300c582d
push 1
lea ecx, [ebp - 0x60]
push ecx
push 0x300c486f
call eax
mov al, byte [ebp - 0x4c]
neg al
push ebx
lea ecx, [ebp - 0x5c]
lea edi, [esi + 0x44]
push edi
sbb eax, eax
and eax, ecx
push eax
call dword [0x302a646c]
test eax, eax
je 0x300c584d
mov dword [edi], ebx
jmp 0x300c58a2
mov eax, dword [edi]
mov edx, dword [eax]
lea ecx, [esi + 0x48]
push ecx
push 0x3024eca8
push eax
call dword [edx]
test eax, eax
je 0x300c586e
mov eax, dword [edi]
mov dword [esi + 0x48], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x300c5849
mov edi, dword [edi]
mov ecx, dword [esi + 0xc]
mov dword [ebp + 0x6c], edi
mov edi, dword [edi]
push 8
call fcn.300bfe4e
push eax
push dword [ebp + 0x6c]
call dword [edi + 0x50]
test eax, eax
je 0x300c58a2
mov eax, dword [esi + 0x48]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x44]
mov dword [esi + 0x48], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi + 0x44], ebx
cmp dword [esi], ebx
jne 0x300c5bf8
cmp dword [esi + 0x44], ebx
je 0x300c5bf8
cmp dword [esi + 0x48], ebx
je 0x300c5bf8
mov ecx, dword [esi + 0xc]
call fcn.300bfe4e
test eax, eax
je 0x300c5bf8
mov edi, 0x17c
push edi
lea eax, [ebp - 0x34c]
push ebx
push eax
call fcn.3022b3a0
mov eax, dword [esi + 0x48]
add esp, 0xc
push ebx
lea edx, [ebp - 0x34c]
push edx
mov dword [ebp - 0x34c], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
test eax, eax
jne 0x300c5ba8
test byte [ebp - 0x1df], 2
je 0x300c5bf8
test byte [ebp - 0x1dd], 2
jne 0x300c5bf8
cmp dword [ebp - 0x30c], 0x400000
jae 0x300c5933
cmp dword [ebp - 0x310], ebx
ja 0x300c5ba8
push 0x7c
pop edi
push edi
lea eax, [ebp - 0x28]
push ebx
push eax
call fcn.3022b3a0
mov eax, dword [esi + 0x48]
add esp, 0xc
push ebx
lea ecx, [esi + 0x4c]
push ecx
lea ecx, [ebp - 0x28]
push ecx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], 1
mov dword [ebp + 0x40], 0x200
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
test eax, eax
jne 0x300c5ba8
mov eax, dword [esi + 0x48]
mov ecx, dword [eax]
push ebx
lea edi, [esi + 0x54]
push edi
push ebx
push eax
call dword [ecx + 0x10]
test eax, eax
jne 0x300c5ba8
mov edi, dword [edi]
mov ecx, dword [esi + 0xc]
mov dword [ebp + 0x6c], edi
mov edi, dword [edi]
call fcn.300bfe4e
push eax
push ebx
push dword [ebp + 0x6c]
call dword [edi + 0x20]
test eax, eax
jne 0x300c5ba8
mov eax, dword [esi + 0x4c]
push dword [esi + 0x54]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x70]
test eax, eax
jne 0x300c5ba8
push 0x7c
pop edi
push edi
lea eax, [ebp - 0x28]
push ebx
push eax
call fcn.3022b3a0
mov eax, dword [ebp + 0x78]
mov dword [ebp - 0x1c], eax
mov dword [esi + 0x24], eax
mov eax, dword [ebp + 0x7c]
add esp, 0xc
mov dword [ebp - 0x20], eax
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x48]
lea edx, [ebp - 0xdc]
push edx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], 0x1007
mov dword [ebp + 0x40], 0x4040
mov dword [ebp + 0x20], 0x20
mov dword [ebp + 0x24], 0x40
mov dword [ebp - 0xdc], edi
mov dword [esi + 4], 9
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
test eax, eax
jne 0x300c5b1c
push 0x10
pop edx
cmp dword [ebp - 0x88], edx
je 0x300c5ac2
push 0x18
pop edi
cmp dword [ebp - 0x88], edi
je 0x300c5a8b
push 0x20
pop edi
cmp dword [ebp - 0x88], edi
jne 0x300c5b1c
mov edx, 0xff0000
cmp dword [ebp - 0x84], edx
jne 0x300c5b1c
mov ecx, 0xff00
cmp dword [ebp - 0x80], ecx
jne 0x300c5b1c
mov eax, 0xff
cmp dword [ebp - 0x7c], eax
jne 0x300c5b1c
mov dword [ebp + 0x2c], edi
mov dword [ebp + 0x30], edx
mov dword [ebp + 0x38], eax
mov dword [esi + 4], 7
jmp 0x300c5b19
mov edx, 0xff0000
cmp dword [ebp - 0x84], edx
jne 0x300c5b1c
mov ecx, 0xff00
cmp dword [ebp - 0x80], ecx
jne 0x300c5b1c
mov eax, 0xff
cmp dword [ebp - 0x7c], eax
jne 0x300c5b1c
mov dword [ebp + 0x2c], edi
mov dword [ebp + 0x30], edx
mov dword [ebp + 0x38], eax
mov dword [esi + 4], 6
jmp 0x300c5b19
mov eax, 0xf800
cmp dword [ebp - 0x84], eax
jne 0x300c5aea
mov ecx, 0x7e0
cmp dword [ebp - 0x80], ecx
jne 0x300c5b1c
push 0x1f
pop edi
cmp dword [ebp - 0x7c], edi
jne 0x300c5b1c
mov dword [esi + 4], 5
jmp 0x300c5b10
mov eax, 0x7c00
cmp dword [ebp - 0x84], eax
jne 0x300c5b1c
mov ecx, 0x3e0
cmp dword [ebp - 0x80], ecx
jne 0x300c5b1c
push 0x1f
pop edi
cmp dword [ebp - 0x7c], edi
jne 0x300c5b1c
mov dword [esi + 4], 4
mov dword [ebp + 0x2c], edx
mov dword [ebp + 0x30], eax
mov dword [ebp + 0x38], edi
mov dword [ebp + 0x34], ecx
cmp dword [esi + 4], 9
je 0x300c5ba8
mov eax, dword [esi + 0x48]
mov ecx, dword [eax]
push ebx
lea edi, [esi + 0x50]
push edi
lea edx, [ebp - 0x28]
push edx
push eax
call dword [ecx + 0x18]
test eax, eax
je 0x300c5b58
mov eax, dword [esi + 0x48]
push ebx
push edi
lea edx, [ebp - 0x28]
push edx
mov dword [ebp + 0x40], 0x40840
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
jne 0x300c5ba8
jmp 0x300c5b5c
mov byte [esi + 0x40], 1
mov eax, dword [edi]
mov ecx, dword [eax]
lea edx, [ebp + 0x64]
push edx
push eax
call dword [ecx + 0x44]
test eax, eax
je 0x300c5f05
mov eax, dword [edi]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x48]
push ebx
push edi
lea edx, [ebp - 0x28]
push edx
mov dword [edi], ebx
mov dword [ebp + 0x40], 0x40840
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
jne 0x300c5ba8
mov edi, dword [edi]
mov eax, dword [edi]
lea ecx, [ebp + 0x64]
push ecx
push edi
call dword [eax + 0x44]
test eax, eax
je 0x300c5f05
mov eax, dword [esi + 0x54]
cmp eax, ebx
je 0x300c5bb8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi + 0x54], ebx
mov eax, dword [esi + 0x50]
cmp eax, ebx
je 0x300c5bc8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi + 0x50], ebx
mov eax, dword [esi + 0x4c]
cmp eax, ebx
je 0x300c5bd8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi + 0x4c], ebx
mov eax, dword [esi + 0x48]
cmp eax, ebx
je 0x300c5be8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi + 0x48], ebx
mov eax, dword [esi + 0x44]
cmp eax, ebx
je 0x300c5bf8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi + 0x44], ebx
cmp dword [0x30278370], 1
jne 0x300c5e6d
cmp dword [ebp + 0x5c], ebx
jne 0x300c5e6d
mov eax, dword [0x302a6470]
cmp eax, ebx
je 0x300c5e6d
cmp dword [ebp + 0x78], 0x800
jge 0x300c5e6d
cmp dword [ebp + 0x7c], 0x800
jge 0x300c5e6d
push 0xdc
call eax
cmp eax, ebx
mov dword [esi + 0x90], eax
je 0x300c5e26
mov ecx, dword [esi + 0xc]
lea eax, [ebp + 0x54]
push eax
call fcn.300c0b2e
mov ecx, dword [esi + 0xc]
push 1
call fcn.300bfe4e
push eax
call dword [sym.imp.USER32.dll_MonitorFromWindow]
mov dword [ebp + 0x60], eax
mov eax, dword [esi + 0x90]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov edi, eax
cmp edi, ebx
mov dword [ebp + 0x6c], ebx
jbe 0x300c5c9b
mov eax, dword [esi + 0x90]
push dword [ebp + 0x6c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x38]
cmp eax, dword [ebp + 0x60]
je 0x300c5c9b
inc dword [ebp + 0x6c]
cmp dword [ebp + 0x6c], edi
jb 0x300c5c7f
push 0x34
lea edi, [esi + 0x5c]
push ebx
push edi
call fcn.3022b3a0
mov eax, dword [ebp + 0x54]
mov ecx, dword [esi + 0xc]
mov dword [edi], eax
mov eax, dword [ebp + 0x58]
add esp, 0xc
mov byte [esi + 0xa0], 1
mov dword [esi + 0x78], 1
mov dword [esi + 0x70], 3
mov dword [esi + 0x64], 0x16
mov dword [esi + 0x68], ebx
mov dword [esi + 0x60], eax
call fcn.300bfe4e
lea ecx, [esi + 0x94]
push ecx
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x74], eax
mov eax, dword [esi + 0x90]
mov dword [esi + 0x84], ebx
mov eax, dword [eax]
push edi
push 0x56
mov dword [ebp + 0x60], eax
call fcn.300bfe4e
push eax
mov eax, dword [ebp + 0x60]
push 1
push dword [ebp + 0x6c]
push dword [esi + 0x90]
call dword [eax + 0x3c]
test eax, eax
jne 0x300c5e26
push 0xd4
lea eax, [ebp - 0x1d0]
push ebx
push eax
call fcn.3022b3a0
add esp, 0xc
lea edx, [ebp - 0x1d0]
lea edi, [esi + 0x94]
mov eax, dword [edi]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x1c]
test eax, eax
jne 0x300c5e26
cmp dword [ebp - 0x1d0], 3
je 0x300c5e26
test byte [ebp - 0x1b0], 0x10
je 0x300c5e26
test byte [ebp - 0x184], 4
je 0x300c5e26
test byte [ebp - 0x194], 0x20
jne 0x300c5e26
mov ecx, dword [ebp - 0x190]
mov eax, 0x2000200
and ecx, eax
cmp ecx, eax
jne 0x300c5e26
cmp dword [esi + 0x9c], ebx
jne 0x300c5def
call fcn.300c45e9
test al, al
jne 0x300c5def
mov eax, dword [esi + 0xc]
cmp dword [eax + 0xe18], ebx
je 0x300c5def
test byte [ebp - 0x1c6], 2
je 0x300c5def
push 0x148
call fcn.300367dc
cmp eax, ebx
pop ecx
je 0x300c5dd7
mov ecx, eax
call fcn.300c6897
mov dword [ebp + 0x6c], eax
jmp 0x300c5dda
mov dword [ebp + 0x6c], ebx
push dword [edi]
mov ecx, dword [ebp + 0x6c]
call fcn.3008862e
push dword [ebp + 0x6c]
mov ecx, dword [esi + 0xc]
call fcn.3008862e
test byte [ebp - 0x1c1], 0x20
mov edi, dword [edi]
mov eax, dword [edi]
lea ecx, [esi + 0x98]
push ecx
je 0x300c5e0d
push ebx
push 0x16
push 0x200
jmp 0x300c5e12
push 1
push 0x16
push ebx
push 1
push dword [ebp + 0x7c]
push dword [ebp + 0x78]
push edi
call dword [eax + 0x50]
test eax, eax
je 0x300c5fb6
lea edi, [esi + 0x94]
cmp dword [edi], ebx
je 0x300c5e43
mov ecx, dword [esi + 0xc]
push ebx
call fcn.3008862e
mov eax, dword [edi]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [edi], ebx
lea edi, [esi + 0x98]
mov eax, dword [edi]
cmp eax, ebx
je 0x300c5e57
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [edi], ebx
mov eax, dword [esi + 0x90]
cmp eax, ebx
je 0x300c5e6d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi + 0x90], ebx
inc dword [ebp + 0x68]
cmp dword [ebp + 0x68], 2
jl 0x300c57a9
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0xe
push eax
mov dword [ebp + 0x5c], eax
call edi
push 0xc
push dword [ebp + 0x5c]
mov dword [ebp + 0x60], eax
call edi
mov ecx, dword [ebp + 0x60]
imul ecx, eax
mov eax, dword [0x3027836c]
cmp eax, 9
mov dword [ebp + 0x64], ecx
je 0x300c5ebf
push eax
call fcn.3000400c
movsx eax, al
cmp eax, dword [ebp + 0x64]
pop ecx
je 0x300c60a1
mov eax, dword [ebp + 0x64]
dec eax
je 0x300c609b
dec eax
je 0x300c608f
push 2
pop ecx
sub eax, ecx
je 0x300c6087
sub eax, 4
je 0x300c607b
sub eax, 8
je 0x300c5fd9
sub eax, 8
je 0x300c5fca
mov dword [0x3027836c], 7
jmp 0x300c60a1
mov eax, dword [esi + 0x50]
push dword [ebp + 0x64]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x68]
call fcn.300c45e9
test al, al
jne 0x300c5fae
mov eax, dword [esi + 0xc]
cmp dword [eax + 0xe18], ebx
je 0x300c5fae
test byte [ebp - 0x1de], 2
je 0x300c5fae
push 0x2b0
call fcn.300367dc
cmp eax, ebx
pop ecx
je 0x300c5f50
mov ecx, eax
call fcn.300c61c4
mov edi, eax
jmp 0x300c5f52
xor edi, edi
mov ecx, dword [esi + 0xc]
lea eax, [ebp + 0x54]
push eax
call fcn.300c0b2e
push dword [esi + 0x4c]
mov ecx, edi
push dword [esi + 0x48]
call fcn.3008862e
mov eax, dword [ebp + 0x78]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x7c]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x38]
push eax
mov ecx, edi
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x30], ebx
call fcn.30004613
mov eax, dword [ebp + 0x54]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x58]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x48]
push eax
mov ecx, edi
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x40], ebx
call fcn.30004625
mov ecx, dword [esi + 0xc]
push edi
call fcn.3008862e
mov dword [esi + 0x10], ebx
jmp 0x300c60bd
push dword [ebp + 0x7c]
mov dword [esi + 0x10], ebx
push dword [ebp + 0x78]
mov byte [esi + 0x40], 1
push 7
jmp 0x300c60b6
mov dword [0x3027836c], 6
jmp 0x300c60a1
push 0x6c
pop edi
push edi
lea eax, [ebp - 0x18]
push ebx
push eax
call fcn.3022b3a0
add esp, 0xc
push ebx
mov dword [ebp - 0x18], edi
call dword [sym.imp.USER32.dll_GetDC]
push 1
push 1
push eax
mov dword [ebp + 0x68], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edi, dword [sym.imp.GDI32.dll_GetDIBits]
push ebx
lea ecx, [ebp - 0x18]
push ecx
push ebx
push 1
push ebx
push eax
push dword [ebp + 0x68]
mov dword [ebp + 0x64], eax
call edi
push ebx
lea eax, [ebp - 0x18]
push eax
push ebx
push 1
push ebx
push dword [ebp + 0x64]
push dword [ebp + 0x68]
call edi
push dword [ebp + 0x64]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp + 0x68]
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp word [ebp - 0xa], 0x10
jne 0x300c606f
cmp dword [ebp - 8], 3
jne 0x300c606f
cmp dword [ebp + 0x10], 0xf800
jne 0x300c606f
cmp dword [ebp + 0x14], 0x7e0
jne 0x300c606f
cmp dword [ebp + 0x18], 0x1f
jne 0x300c606f
mov dword [0x3027836c], 5
jmp 0x300c60a1
mov dword [0x3027836c], 4
jmp 0x300c60a1
mov dword [0x3027836c], 3
jmp 0x300c60a1
mov dword [0x3027836c], ecx
jmp 0x300c60a1
mov dword [0x3027836c], 1
jmp 0x300c60a1
mov dword [0x3027836c], ebx
push dword [ebp + 0x5c]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp + 0x7c]
push dword [ebp + 0x78]
push dword [0x3027836c]
mov ecx, esi
call fcn.3008862e
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret 8