Function at 0x433a00
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
push ebx
push esi
mov esi, edx
mov edx, ecx
mov ecx, dword [ebp + 0x18]
movzx ebx, cl
shl ebx, 8
movzx eax, cx
shr eax, 8
or ebx, eax
mov dword [esp + 0x68], esi
mov eax, ecx
shl ebx, 8
shr eax, 0x10
movzx eax, al
or ebx, eax
mov dword [esp + 0x64], edx
cmp byte [ebp + 0x20], 0
push edi
jne 0x433a56
push 0
push 0xffffffffffffffff
push 0
mov ecx, edx
call fcn.0047de60
push 0
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.0047de60
xorps xmm0, xmm0
lea edx, [esp + 0x74]
push 0
lea ecx, [esp + 0x74]
movlpd qword [esp + 0x74], xmm0
call fcn.0047c010
mov edi, dword [ebp + 8]
add esp, 4
mov edx, dword [esp + 0x70]
add edi, edx
add edx, dword [ebp + 0x10]
mov esi, edi
mov ecx, dword [ebp + 0xc]
add ecx, dword [esp + 0x74]
mov eax, dword [ebp + 0x14]
add eax, dword [esp + 0x74]
cmp edi, edx
mov dword [esp + 0x58], edx
cmovle esi, edx
mov dword [esp + 0x54], edi
cmovle edx, edi
mov dword [esp + 0x38], ecx
cmp ecx, eax
mov dword [esp + 0x34], edx
mov edi, ecx
mov dword [esp + 0x3c], eax
cmovle edi, eax
mov edx, eax
mov eax, dword [ebp + 0x1c]
cmovle edx, ecx
xor ecx, ecx
mov dword [esp + 0x50], edx
test eax, eax
cmovns ecx, eax
mov dword [esp + 0x48], ecx
cmp ecx, 0xff
jle 0x433ae8
mov eax, ebx
mov ecx, 0xff
shr eax, 8
mov dword [esp + 0x24], eax
mov eax, ebx
mov dword [esp + 0x48], ecx
shr eax, 0x10
jmp 0x433b0c
test ecx, ecx
jle 0x433afc
mov eax, ebx
shr eax, 8
mov dword [esp + 0x24], eax
mov eax, ebx
shr eax, 0x10
jmp 0x433b0c
mov al, byte [esp + 0x17]
mov bl, byte [esp + 0x17]
mov dword [esp + 0x24], eax
mov al, byte [esp + 0x17]
push 0
mov dword [esp + 0x2c], eax
call dword [sym.imp.USER32.dll_GetDC]
mov dword [esp + 0x20], eax
test eax, eax
jne 0x433b38
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, dword [ebp + 0x24]
push edi
call fcn.00429530
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
sub esi, dword [esp + 0x34]
xor ecx, ecx
sub edi, dword [esp + 0x50]
inc esi
push eax
mov byte [esp + 0x18], 0
inc edi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x44], ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x433f27
push edi
push esi
push dword [esp + 0x28]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0x30], eax
test eax, eax
je 0x433f27
push eax
push dword [esp + 0x30]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x40], eax
test eax, eax
je 0x433f27
push 0xcc0020
push dword [esp + 0x54]
push dword [esp + 0x3c]
push dword [esp + 0x2c]
push edi
push esi
mov esi, dword [esp + 0x44]
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
je 0x433f27
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x13]
push 8
push eax
lea eax, [esp + 0x54]
mov edx, esi
push eax
lea eax, [esp + 0x24]
push eax
call fcn.004337f0
add esp, 0x10
mov dword [esp + 0x1c], eax
test eax, eax
je 0x433f27
mov edi, dword [esp + 0x18]
imul edi, dword [esp + 0x4c]
cmp byte [esp + 0x13], 0
mov dword [esp + 0x4c], edi
je 0x433c8f
xor esi, esi
test edi, edi
jle 0x433c93
cmp edi, 0x10
jb 0x433c81
mov eax, edi
and eax, reloc.OLEAUT32.dll_SafeArrayDestroy
jns 0x433c21
dec eax
or eax, 0xfffffff0
inc eax
movaps xmm2, xmmword [0x4d17d0]
mov edx, edi
sub edx, eax
mov eax, dword [esp + 0x1c]
add eax, 0x20
movups xmm0, xmmword [eax - 0x20]
lea eax, [eax + 0x40]
add esi, 0x10
movaps xmm1, xmm2
pand xmm1, xmm0
movups xmmword [eax - 0x60], xmm1
movaps xmm1, xmm2
movups xmm0, xmmword [eax - 0x50]
pand xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movaps xmm1, xmm2
movups xmm0, xmmword [eax - 0x40]
pand xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movaps xmm1, xmm2
movups xmm0, xmmword [eax - 0x30]
pand xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
cmp esi, edx
jl 0x433c33
mov eax, dword [esp + 0x1c]
cmp esi, edi
jge 0x433c93
and dword [eax + esi*4], 0xf8f8f8f8
inc esi
cmp esi, edi
jl 0x433c81
jmp 0x433c93
mov esi, dword [esp + 0x64]
cmp byte [ebp + 0x20], 0
je 0x433ccf
mov eax, dword [eax]
mov ebx, dword [ebp + 0x24]
and eax, 0xffffff
push eax
push str.0x_06X
push dword [ebx]
call fcn.0040d540
add esp, 0xc
mov dword [ebx + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esp + 0x20]
mov edi, eax
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
jmp 0x433f6c
mov edx, dword [esp + 0x48]
cmp edx, 1
jge 0x433d9a
cmp byte [esp + 0x13], 0
je 0x433cea
and dword [ebp + 0x18], 0xf8f8f8f8
mov ebx, dword [esp + 0x18]
xor ecx, ecx
test edi, edi
jle 0x433d68
mov edx, dword [ebp + 0x18]
dec edi
nop dword [eax + eax]
mov eax, dword [esp + 0x54]
cmp eax, dword [esp + 0x58]
mov eax, dword [esp + 0x38]
jle 0x433d2b
cmp eax, dword [esp + 0x3c]
jle 0x433d18
mov esi, edi
jmp 0x433d49
mov eax, ecx
cdq
idiv ebx
lea esi, [eax + 1]
imul esi, ebx
sub esi, edx
mov edx, dword [ebp + 0x18]
dec esi
jmp 0x433d49
cmp eax, dword [esp + 0x3c]
jle 0x433d47
mov eax, edi
cdq
idiv ebx
mov esi, eax
mov eax, ecx
cdq
idiv ebx
imul esi, ebx
add esi, edx
mov edx, dword [ebp + 0x18]
jmp 0x433d49
mov esi, ecx
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + esi*4]
and eax, 0xffffff
cmp eax, edx
je 0x433d63
inc ecx
dec edi
cmp ecx, dword [esp + 0x4c]
jl 0x433d00
jmp 0x433d68
mov byte [esp + 0x14], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esp + 0x20]
mov edi, eax
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [esp + 0x40]
push ecx
push dword [esp + 0x30]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esp + 0x2c]
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x433f9f
cmp byte [esp + 0x13], 0
mov eax, dword [esp + 0x24]
je 0x433db4
and eax, 0xfffffff8
and bl, 0xf8
and byte [esp + 0x28], 0xf8
mov dword [esp + 0x24], eax
movzx edi, bl
mov dword [esp + 0x5c], edi
mov byte [esp + 0x13], dl
cmp edx, edi
jle 0x433dca
mov byte [esp + 0x15], 0
jmp 0x433dd2
mov cl, bl
sub cl, dl
mov byte [esp + 0x15], cl
mov ecx, dword [esp + 0x18]
movzx edi, al
sub al, byte [esp + 0x13]
cmp edx, edi
mov dword [esp + 0x60], edi
movzx eax, al
mov dword [esp + 0x44], 0
mov edi, dword [esp + 0x44]
cmovle edi, eax
mov dword [esp + 0x48], 0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x44], edi
movzx edi, al
sub al, byte [esp + 0x13]
cmp edx, edi
mov dword [esp + 0x64], edi
mov edi, dword [esp + 0x48]
movzx eax, al
cmovle edi, eax
mov dword [esp + 0x48], edi
mov edi, 0xff
mov eax, edi
sub eax, dword [esp + 0x5c]
cmp edx, eax
jle 0x433e36
mov byte [esp + 0x16], 0xff
jmp 0x433e40
mov al, byte [esp + 0x13]
add al, bl
mov byte [esp + 0x16], al
mov bl, byte [esp + 0x13]
mov eax, edi
sub eax, dword [esp + 0x60]
cmp edx, eax
jle 0x433e55
mov byte [esp + 0x17], 0xff
jmp 0x433e61
mov eax, dword [esp + 0x24]
mov bh, bl
add bh, al
mov byte [esp + 0x17], bh
sub edi, dword [esp + 0x64]
cmp edx, edi
jle 0x433e70
mov byte [esp + 0x13], 0xff
jmp 0x433e78
add bl, byte [esp + 0x28]
mov byte [esp + 0x13], bl
mov eax, dword [esp + 0x4c]
xor edi, edi
test eax, eax
jle 0x433f2b
lea ebx, [eax - 1]
nop dword [eax]
mov eax, dword [esp + 0x54]
cmp eax, dword [esp + 0x58]
mov eax, dword [esp + 0x38]
jle 0x433eb8
cmp eax, dword [esp + 0x3c]
jle 0x433ea8
mov esi, ebx
jmp 0x433ed3
mov eax, edi
cdq
idiv ecx
lea esi, [eax + 1]
imul esi, ecx
sub esi, edx
dec esi
jmp 0x433ed3
cmp eax, dword [esp + 0x3c]
jle 0x433ed1
mov eax, ebx
cdq
idiv ecx
mov esi, eax
mov eax, edi
cdq
idiv ecx
imul esi, ecx
add esi, edx
jmp 0x433ed3
mov esi, edi
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + esi*4]
mov ecx, edx
mov eax, edx
shr ecx, 0x10
shr eax, 8
cmp cl, byte [esp + 0x15]
jb 0x433f08
cmp cl, byte [esp + 0x16]
ja 0x433f08
cmp al, byte [esp + 0x44]
jb 0x433f08
cmp al, byte [esp + 0x17]
ja 0x433f08
cmp dl, byte [esp + 0x48]
jb 0x433f08
cmp dl, byte [esp + 0x13]
jbe 0x433f1d
inc edi
dec ebx
cmp edi, dword [esp + 0x4c]
jge 0x433cb6
mov ecx, dword [esp + 0x18]
jmp 0x433e90
mov byte [esp + 0x14], 1
jmp 0x433cb6
mov esi, dword [esp + 0x64]
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x40], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esp + 0x20]
mov edi, eax
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [esp + 0x2c], 0
mov byte [esp + 0x14], 0
je 0x433f9b
mov eax, dword [esp + 0x30]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x14], 0
mov dword [esp + 0x1c], eax
test ebx, ebx
je 0x433f8b
mov ecx, dword [esp + 0x40]
mov ebx, dword [esp + 0x18]
push ecx
push dword [esp + 0x30]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esp + 0x2c]
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x433f9f
push dword [esp + 0x2c]
mov ebx, dword [esp + 0x1c]
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x433f9f
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
test eax, eax
je 0x433fae
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x433b28
push eax
call fcn.00497f48
add esp, 4
cmp byte [ebp + 0x20], 0
jne 0x433b31
mov al, byte [esp + 0x14]
test al, al
je 0x434010
mov eax, esi
mov ecx, dword [esp + 0x68]
cdq
idiv ebx
push 0x11
sub edx, dword [esp + 0x74]
mov esi, eax
add edx, dword [esp + 0x38]
mov eax, edx
cdq
push edx
push eax
call fcn.0047e190
sub esi, dword [esp + 0x74]
add esi, dword [esp + 0x50]
mov ecx, dword [esp + 0x6c]
mov eax, esi
push 0x11
cdq
push edx
push eax
call fcn.0047e190
mov al, byte [esp + 0x14]
mov ecx, dword [ebp + 0x24]
pop edi
movzx eax, al
cdq
pop esi
mov dword [ecx], eax
mov dword [ecx + 4], edx
pop ebx
mov esp, ebp
pop ebp
ret