Function at 0x436310
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
cmp byte [ebp + 0x24], 0
push ebx
push esi
mov esi, dword [ebp + 0x20]
push edi
mov edi, ecx
mov dword [esp + 0x44], edi
jne 0x436340
mov edx, str.Fast
mov ecx, esi
call fcn.00471970
mov byte [esp + 0x16], 0
test eax, eax
je 0x436345
mov byte [esp + 0x16], 1
mov edx, 0x4a1f4c
mov ecx, esi
call fcn.00471970
test eax, eax
setne al
mov byte [esp + 0x17], al
test al, al
je 0x436380
mov ebx, dword [ebp + 0x18]
mov eax, ebx
shr eax, 8
movzx ecx, al
movzx eax, bl
shl eax, 8
or ecx, eax
mov eax, ebx
shr eax, 0x10
shl ecx, 8
movzx eax, al
or ecx, eax
jmp 0x4363a0
mov ecx, dword [ebp + 0x18]
mov eax, ecx
shr eax, 8
movzx ebx, al
movzx eax, cl
shl eax, 8
or ebx, eax
mov eax, ecx
shr eax, 0x10
shl ebx, 8
movzx eax, al
or ebx, eax
cmp byte [ebp + 0x24], 0
mov eax, dword [0x4ae860]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
je 0x4363b7
xor esi, esi
jmp 0x4363c4
mov cl, 1
cmp cl, byte [edi + 1]
sbb esi, esi
and esi, dword [0x4ae864]
mov dword [esp + 0x34], esi
test eax, eax
je 0x4363db
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, eax
call fcn.004744e0
test esi, esi
je 0x4363ee
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.004744e0
xor edx, edx
mov dword [esp + 0x48], 0
lea ecx, [esp + 0x48]
mov dword [esp + 0x4c], 0
call fcn.00472960
mov esi, dword [ebp + 8]
mov ecx, dword [esp + 0x48]
add esi, ecx
mov edi, dword [ebp + 0x14]
mov eax, dword [esp + 0x4c]
add edi, eax
add dword [ebp + 0x10], ecx
add dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0x1c]
mov dword [ebp + 8], esi
mov dword [ebp + 0x14], edi
test ecx, ecx
jns 0x4365ae
mov dword [ebp + 0x1c], 0
mov al, byte [esp + 0x17]
mov byte [esp + 0x10], al
mov al, byte [esp + 0x17]
mov dword [esp + 0x20], eax
mov al, byte [esp + 0x17]
push 0
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_GetDC]
mov edx, eax
mov dword [esp + 0x24], edx
test edx, edx
je 0x436a74
cmp byte [esp + 0x16], 0
mov byte [esp + 0xf], 0
je 0x43683d
mov eax, dword [ebp + 0x10]
xor ecx, ecx
sub edi, dword [ebp + 0xc]
sub eax, esi
inc eax
mov dword [esp + 0x28], ecx
push edx
mov dword [esp + 0x1c], ecx
inc edi
mov dword [esp + 0x3c], ecx
mov dword [ebp + 0x10], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
mov dword [esp + 0x40], esi
test esi, esi
je 0x43676e
push edi
push dword [ebp + 0x10]
push dword [esp + 0x2c]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0x28], eax
test eax, eax
je 0x43676e
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x38], eax
test eax, eax
je 0x43676e
push 0xcc0020
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esp + 0x30]
push edi
push dword [ebp + 0x10]
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
je 0x43676e
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x16]
push 8
push eax
lea eax, [esp + 0x44]
mov edx, esi
push eax
lea eax, [esp + 0x38]
push eax
call fcn.00436100
mov edx, eax
add esp, 0x10
mov dword [esp + 0x18], edx
test edx, edx
je 0x43676e
mov edi, dword [esp + 0x2c]
mov al, byte [esp + 0x16]
imul edi, dword [esp + 0x3c]
test al, al
je 0x4365e2
xor esi, esi
test edi, edi
jle 0x4365e6
cmp edi, 8
jb 0x436598
mov eax, edi
and eax, reloc.OLEAUT32.dll_VariantInit
jns 0x43655a
dec eax
or eax, 0xfffffff8
inc eax
movdqa xmm1, xmmword [0x4a43c0]
mov ecx, edi
sub ecx, eax
mov eax, edx
jmp 0x436570
movdqu xmm0, xmmword [eax]
add esi, 8
pand xmm0, xmm1
movdqu xmmword [eax], xmm0
movdqu xmm0, xmmword [eax + 0x10]
pand xmm0, xmm1
movdqu xmmword [eax + 0x10], xmm0
add eax, 0x20
cmp esi, ecx
jl 0x436570
mov al, byte [esp + 0x16]
cmp esi, edi
jge 0x4365e6
lea esp, [esp]
and dword [edx + esi*4], 0xf8f8f8f8
inc esi
cmp esi, edi
jl 0x4365a0
jmp 0x4365e6
cmp ecx, 0xff
jle 0x4365bf
mov dword [ebp + 0x1c], 0xff
jmp 0x4365c7
test ecx, ecx
jle 0x436439
mov ecx, dword [esp + 0x2c]
mov eax, ecx
shr eax, 8
mov dword [esp + 0x20], eax
mov eax, ecx
mov byte [esp + 0x10], cl
shr eax, 0x10
jmp 0x43644d
mov esi, dword [esp + 0x3c]
cmp byte [ebp + 0x24], 0
je 0x436632
mov eax, dword [edx]
and eax, 0xffffff
cmp byte [esp + 0x17], 0
jne 0x436601
mov ecx, eax
call fcn.0042e540
push eax
lea eax, [esp + 0x54]
push str.0x_06X
push eax
call fcn.0048498d
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0x5c]
add esp, 0xc
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.004744e0
mov byte [esp + 0xf], 1
jmp 0x436772
mov ecx, dword [ebp + 0x1c]
cmp ecx, 1
jge 0x436666
test al, al
je 0x436644
and ebx, 0xf8f8f8f8
xor esi, esi
test edi, edi
jle 0x436772
mov edi, edi
mov eax, dword [edx + esi*4]
and eax, 0xffffff
cmp eax, ebx
je 0x436628
inc esi
cmp esi, edi
jl 0x436650
jmp 0x436772
mov bl, byte [esp + 0x10]
test al, al
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
je 0x436683
and bl, 0xf8
and edx, 0xfffffff8
and eax, 0xfffffff8
mov dword [esp + 0x1c], eax
movzx esi, bl
cmp ecx, esi
jle 0x436691
mov byte [esp + 0x16], 0
jmp 0x436699
mov bh, bl
sub bh, cl
mov byte [esp + 0x16], bh
movzx ecx, dl
mov dword [esp + 0x3c], ecx
cmp dword [ebp + 0x1c], ecx
jle 0x4366ac
mov byte [esp + 0x14], 0
jmp 0x4366b5
mov bh, dl
sub bh, byte [ebp + 0x1c]
mov byte [esp + 0x14], bh
movzx ecx, al
mov dword [esp + 0x20], ecx
cmp dword [ebp + 0x1c], ecx
jle 0x4366c8
mov byte [esp + 0x12], 0
jmp 0x4366d1
mov bh, al
sub bh, byte [ebp + 0x1c]
mov byte [esp + 0x12], bh
mov ecx, 0xff
mov eax, ecx
sub eax, esi
cmp dword [ebp + 0x1c], eax
jle 0x4366e5
mov byte [esp + 0x15], cl
jmp 0x4366ee
mov bh, byte [ebp + 0x1c]
add bh, bl
mov byte [esp + 0x15], bh
mov ebx, dword [ebp + 0x1c]
mov eax, ecx
sub eax, dword [esp + 0x3c]
cmp ebx, eax
jle 0x436701
mov byte [esp + 0x13], cl
jmp 0x436708
lea eax, [edx + ebx]
mov byte [esp + 0x13], al
sub ecx, dword [esp + 0x20]
cmp ebx, ecx
jle 0x436716
mov byte [ebp + 0x1c], 0xff
jmp 0x43671f
mov eax, dword [esp + 0x1c]
add bl, al
mov dword [ebp + 0x1c], ebx
xor esi, esi
test edi, edi
jle 0x436772
mov ebx, dword [esp + 0x18]
lea esp, [esp]
mov edx, dword [ebx + esi*4]
mov ecx, edx
mov eax, edx
shr ecx, 0x10
shr eax, 8
cmp cl, byte [esp + 0x16]
jb 0x436760
cmp cl, byte [esp + 0x15]
ja 0x436760
cmp al, byte [esp + 0x14]
jb 0x436760
cmp al, byte [esp + 0x13]
ja 0x436760
cmp dl, byte [esp + 0x12]
jb 0x436760
cmp dl, byte [ebp + 0x1c]
jbe 0x436767
inc esi
cmp esi, edi
jl 0x436730
jmp 0x436776
mov byte [esp + 0xf], 1
jmp 0x436776
mov esi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x18]
push dword [esp + 0x24]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edi, dword [esp + 0x40]
test edi, edi
je 0x4367a1
mov eax, dword [esp + 0x38]
test eax, eax
je 0x43679a
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4367b0
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
test ebx, ebx
je 0x436a74
push ebx
call fcn.004843d4
add esp, 4
cmp byte [ebp + 0x24], 0
jne 0x436810
cmp byte [esp + 0xf], 0
je 0x436810
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x2c]
test ecx, ecx
je 0x4367f2
mov eax, esi
cdq
idiv ebx
push 0x18
sub edx, dword [esp + 0x4c]
add edx, dword [ebp + 8]
mov eax, edx
cdq
push edx
push eax
call fcn.00401330
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x436810
mov eax, esi
cdq
idiv ebx
push 0x18
sub eax, dword [esp + 0x50]
add eax, dword [ebp + 0xc]
cdq
push edx
push eax
call fcn.00401330
cmp byte [esp + 0xf], 0
mov ecx, 0x49e628
push 1
push 0
mov eax, 0x49bca8
cmove eax, ecx
mov ecx, dword [0x4ad0c8]
push 0xffffffffffffffff
push eax
call fcn.004744e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov ebx, dword [ebp + 0x1c]
mov edx, esi
cmp edx, dword [ebp + 0x10]
setg byte [esp + 0x17]
cmp dword [ebp + 0xc], edi
setg cl
mov byte [esp + 0x16], cl
test ebx, ebx
jle 0x436909
mov bl, byte [esp + 0x10]
mov eax, dword [ebp + 0x1c]
movzx esi, bl
cmp eax, esi
jle 0x436871
mov byte [esp + 0x10], 0
jmp 0x436879
mov cl, bl
sub cl, al
mov byte [esp + 0x10], cl
mov edx, dword [esp + 0x20]
movzx edi, dl
cmp eax, edi
jle 0x43688b
mov byte [esp + 0x12], 0
jmp 0x436893
mov bh, dl
sub bh, al
mov byte [esp + 0x12], bh
mov eax, dword [esp + 0x1c]
movzx ecx, al
mov dword [esp + 0x40], ecx
cmp dword [ebp + 0x1c], ecx
jle 0x4368aa
mov byte [esp + 0x14], 0
jmp 0x4368b3
mov bh, al
sub bh, byte [ebp + 0x1c]
mov byte [esp + 0x14], bh
mov ecx, 0xff
mov eax, ecx
sub eax, esi
cmp dword [ebp + 0x1c], eax
jle 0x4368c7
mov byte [esp + 0x11], cl
jmp 0x4368d0
mov al, byte [ebp + 0x1c]
add al, bl
mov byte [esp + 0x11], al
mov ebx, dword [ebp + 0x1c]
mov eax, ecx
sub eax, edi
cmp ebx, eax
jle 0x4368e1
mov byte [esp + 0x13], cl
jmp 0x4368e8
lea eax, [edx + ebx]
mov byte [esp + 0x13], al
sub ecx, dword [esp + 0x40]
mov edi, dword [ebp + 0x14]
cmp ebx, ecx
mov edx, dword [ebp + 8]
mov cl, byte [esp + 0x16]
jle 0x4368ff
or ch, 0xff
jmp 0x436935
mov eax, dword [esp + 0x1c]
mov ch, bl
add ch, al
jmp 0x436935
mov al, byte [esp + 0x17]
mov ch, byte [esp + 0x17]
mov byte [esp + 0x10], al
mov al, byte [esp + 0x17]
mov byte [esp + 0x12], al
mov al, byte [esp + 0x17]
mov byte [esp + 0x14], al
mov al, byte [esp + 0x17]
mov byte [esp + 0x11], al
mov al, byte [esp + 0x17]
mov byte [esp + 0x13], al
mov esi, dword [esp + 0x44]
mov byte [esp + 0x15], ch
mov ch, byte [esp + 0x17]
xor eax, eax
test ch, ch
je 0x43694f
cmp edx, dword [ebp + 0x10]
setge al
jmp 0x436955
cmp edx, dword [ebp + 0x10]
setle al
test eax, eax
je 0x436996
mov esi, dword [ebp + 0xc]
lea esp, [esp]
xor eax, eax
test cl, cl
je 0x43696d
cmp esi, edi
setge al
jmp 0x436972
cmp esi, edi
setle al
test eax, eax
je 0x436a0d
push esi
push edx
push dword [esp + 0x2c]
call dword [sym.imp.GDI32.dll_GetPixel]
cmp ebx, 1
jge 0x4369c8
cmp eax, dword [esp + 0x2c]
jne 0x4369f6
mov byte [esp + 0xf], 1
push dword [esp + 0x24]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp byte [esp + 0xf], 0
jne 0x436a24
mov ecx, dword [0x4ad0c8]
push 1
push 0
push 0xffffffffffffffff
push 0x49e628
call fcn.004744e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov ecx, eax
mov edx, eax
shr ecx, 8
shr edx, 0x10
cmp al, byte [esp + 0x10]
jb 0x4369f6
cmp al, byte [esp + 0x11]
ja 0x4369f6
cmp cl, byte [esp + 0x12]
jb 0x4369f6
cmp cl, byte [esp + 0x13]
ja 0x4369f6
cmp dl, byte [esp + 0x14]
jb 0x4369f6
cmp dl, byte [esp + 0x15]
jbe 0x436991
mov cl, byte [esp + 0x16]
xor eax, eax
mov edx, dword [ebp + 8]
test cl, cl
sete al
lea esi, [esi + eax*2]
dec esi
jmp 0x436960
mov ch, byte [esp + 0x17]
xor eax, eax
test ch, ch
sete al
lea edx, [edx + eax*2]
dec edx
mov dword [ebp + 8], edx
jmp 0x436941
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x436a3d
mov eax, dword [ebp + 8]
sub eax, dword [esp + 0x48]
push 0x18
cdq
push edx
push eax
call fcn.00401330
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x436a55
sub esi, dword [esp + 0x4c]
push 0x18
mov eax, esi
cdq
push edx
push eax
call fcn.00401330
mov ecx, dword [0x4ad0c8]
push 1
push 0
push 0xffffffffffffffff
push 0x49bca8
call fcn.004744e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
cmp byte [ebp + 0x24], 0
mov ecx, 0x49e628
mov eax, 0x49e8e8
cmove ecx, eax
cmp byte [ecx], 0x30
jne 0x436a90
cmp byte [ecx + 1], 0
je 0x436a9e
mov eax, dword [0x4aa1d8]
test byte [eax + 0xe0], 1
jne 0x436ab9
push 1
push 0
push 0xffffffffffffffff
push ecx
mov ecx, dword [0x4ad0c8]
call fcn.004744e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
push 0x49bc4d
push 0
push ecx
mov ecx, dword [esp + 0x50]
call fcn.0042c8f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20