Function at 0x432410
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
cmp byte [ebp + 0x24], 0
push ebx
mov ebx, dword [ebp + 0x20]
push esi
push edi
mov esi, eax
jne 0x43243d
push 0x4929c0
call fcn.00464370
add esp, 4
mov byte [esp + 0x13], 0
test eax, eax
je 0x432442
mov byte [esp + 0x13], 1
push 0x494af8
mov eax, esi
call fcn.00464370
add esp, 4
test eax, eax
setne al
mov byte [esp + 0x16], al
test al, al
je 0x432485
mov eax, dword [ebp + 0x1c]
mov ecx, eax
shr ecx, 8
movzx edx, cl
movzx ecx, al
mov dword [esp + 0x28], eax
shl ecx, 8
shr eax, 0x10
or edx, ecx
movzx eax, al
shl edx, 8
or edx, eax
mov dword [ebp + 0x1c], edx
jmp 0x4324a7
mov ecx, dword [ebp + 0x1c]
mov edx, ecx
shr edx, 8
movzx eax, dl
movzx edx, cl
shl edx, 8
shr ecx, 0x10
or eax, edx
movzx ecx, cl
shl eax, 8
or eax, ecx
mov dword [esp + 0x28], eax
cmp byte [ebp + 0x24], 0
mov esi, dword [0x4a09d8]
mov dword [esp + 0x30], esi
je 0x4324c4
xor edi, edi
mov dword [esp + 0x34], edi
mov eax, 0x4916f4
jmp 0x4324dd
mov eax, dword [ebp + 8]
mov dl, 1
cmp dl, byte [eax + 1]
mov eax, 0x491918
sbb edi, edi
and edi, dword [0x4a09dc]
mov dword [esp + 0x34], edi
mov ecx, dword [0x4a13a4]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.004668b0
test esi, esi
je 0x432502
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.004668b0
test edi, edi
je 0x432515
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.004668b0
mov ecx, dword [0x49d3c8]
xor eax, eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
test byte [ecx + 0xc8], 1
jne 0x432572
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
jne 0x43255e
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
add dword [ebp + 0xc], eax
add dword [ebp + 0x10], ecx
add dword [ebp + 0x14], eax
add dword [ebp + 0x18], ecx
test ebx, ebx
jns 0x43257d
xor ebx, ebx
mov dword [ebp + 0x20], ebx
jmp 0x4325aa
cmp ebx, 0xff
jle 0x43258f
mov ebx, 0xff
mov dword [ebp + 0x20], ebx
jmp 0x432593
test ebx, ebx
jle 0x4325aa
mov eax, dword [ebp + 0x1c]
mov ecx, eax
shr ecx, 8
mov byte [esp + 0x15], al
shr eax, 0x10
mov byte [esp + 0x10], cl
mov byte [esp + 0x14], al
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x432550
cmp byte [esp + 0x13], 0
mov byte [esp + 0xf], 0
je 0x4328f3
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
mov edx, dword [esp + 0x1c]
sub esi, dword [ebp + 0xc]
sub edi, dword [ebp + 0x10]
xor eax, eax
push edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x3c], eax
inc esi
inc edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esp + 0x20], eax
test eax, eax
je 0x43284b
mov eax, dword [esp + 0x1c]
push edi
push esi
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0x24], eax
test eax, eax
je 0x43284b
mov edx, dword [esp + 0x20]
mov ecx, eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x38], eax
test eax, eax
je 0x43284b
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x1c]
push 0xcc0020
push eax
mov eax, dword [esp + 0x28]
push ecx
push edx
push edi
push esi
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
je 0x43284b
push 8
lea ecx, [esp + 0x1b]
push ecx
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x30]
push ecx
call fcn.00432200
add esp, 0x14
mov dword [esp + 0x18], eax
test eax, eax
je 0x43284b
mov edi, dword [esp + 0x2c]
mov al, byte [esp + 0x17]
imul edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x18]
test al, al
je 0x4326b2
xor esi, esi
test edi, edi
jle 0x4326b6
and dword [ecx + esi*4], reloc.USER32.dll_AdjustWindowRectEx
inc esi
cmp esi, edi
jl 0x4326a4
jmp 0x4326b6
mov esi, dword [esp + 0x3c]
cmp byte [ebp + 0x24], 0
je 0x432705
mov ecx, dword [ecx]
and ecx, 0xffffff
cmp byte [esp + 0x16], 0
je 0x4326cf
mov eax, ecx
jmp 0x4326d4
call fcn.0042a740
push eax
lea edx, [esp + 0x54]
push 0x494aa4
push edx
call fcn.00477162
mov ecx, dword [esp + 0x3c]
add esp, 0xc
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x5c]
push eax
call fcn.004668b0
mov byte [esp + 0xf], 1
jmp 0x43284f
cmp ebx, 1
jge 0x43273c
test al, al
mov eax, dword [esp + 0x28]
je 0x432717
and eax, 0xf8f8f8f8
xor esi, esi
test edi, edi
jle 0x432833
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + esi*4]
and edx, 0xffffff
cmp edx, eax
je 0x4326fb
inc esi
cmp esi, edi
jl 0x432725
jmp 0x432833
test al, al
je 0x43274e
mov al, 0xf8
and byte [esp + 0x15], al
and byte [esp + 0x10], al
and byte [esp + 0x14], al
movzx eax, byte [esp + 0x15]
mov dword [esp + 0x28], eax
cmp ebx, eax
jle 0x432762
mov byte [esp + 0x11], 0
jmp 0x432768
sub al, bl
mov byte [esp + 0x11], al
movzx edx, byte [esp + 0x10]
mov dword [esp + 0x3c], edx
cmp ebx, edx
jle 0x43277c
mov byte [esp + 0x13], 0
jmp 0x432784
mov al, dl
sub al, bl
mov byte [esp + 0x13], al
movzx ecx, byte [esp + 0x14]
cmp ebx, ecx
jle 0x432794
mov byte [esp + 0x14], 0
jmp 0x43279c
mov al, cl
sub al, bl
mov byte [esp + 0x14], al
mov eax, 0xff
sub eax, dword [esp + 0x28]
cmp ebx, eax
jle 0x4327b0
mov byte [esp + 0x12], 0xff
jmp 0x4327be
mov edx, dword [esp + 0x3c]
mov al, bl
add al, byte [esp + 0x28]
mov byte [esp + 0x12], al
mov eax, 0xff
sub eax, edx
cmp ebx, eax
jle 0x4327d0
mov byte [esp + 0x10], 0xff
jmp 0x4327d7
lea eax, [edx + ebx]
mov byte [esp + 0x10], al
mov edx, 0xff
sub edx, ecx
cmp ebx, edx
jle 0x4327e9
mov byte [esp + 0x15], 0xff
jmp 0x4327ef
add bl, cl
mov byte [esp + 0x15], bl
xor esi, esi
test edi, edi
jle 0x432833
mov eax, dword [esp + 0x18]
mov eax, dword [eax + esi*4]
mov ecx, eax
mov edx, eax
shr ecx, 0x10
shr edx, 8
cmp cl, byte [esp + 0x11]
jb 0x43282e
cmp cl, byte [esp + 0x12]
ja 0x43282e
cmp dl, byte [esp + 0x13]
jb 0x43282e
cmp dl, byte [esp + 0x10]
ja 0x43282e
cmp al, byte [esp + 0x14]
jb 0x43282e
cmp al, byte [esp + 0x15]
jbe 0x4326fb
inc esi
cmp esi, edi
jl 0x4327f5
mov ecx, dword [0x4a13a4]
push 1
push 0
push 0xffffffffffffffff
push 0x4916f4
call fcn.004668b0
jmp 0x43284f
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x1c]
push eax
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edi, dword [esp + 0x20]
test edi, edi
je 0x43287b
mov eax, dword [esp + 0x38]
test eax, eax
je 0x432874
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x43288a
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x43289b
push eax
call fcn.004785bf
add esp, 4
cmp byte [esp + 0xf], 0
je 0x432550
cmp byte [ebp + 0x24], 0
jne 0x432ac7
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x4328d4
mov eax, esi
cdq
idiv dword [esp + 0x2c]
push 0x18
mov eax, edx
sub eax, dword [esp + 0x44]
add eax, dword [ebp + 0xc]
cdq
push edx
push eax
mov eax, ecx
call fcn.004010d0
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x432ac7
mov eax, esi
cdq
idiv dword [esp + 0x2c]
sub eax, dword [esp + 0x44]
add eax, dword [ebp + 0x10]
jmp 0x432abb
mov edi, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
setg byte [esp + 0x17]
cmp dword [ebp + 0x10], ecx
setg byte [esp + 0x16]
test ebx, ebx
jle 0x4329a7
movzx edx, byte [esp + 0x15]
cmp ebx, edx
jle 0x432921
mov byte [esp + 0x11], 0
jmp 0x432929
mov al, dl
sub al, bl
mov byte [esp + 0x11], al
movzx eax, byte [esp + 0x10]
cmp ebx, eax
jle 0x432939
mov byte [esp + 0x13], 0
jmp 0x43293f
sub al, bl
mov byte [esp + 0x13], al
movzx ecx, byte [esp + 0x14]
cmp ebx, ecx
jle 0x43294f
mov byte [esp + 0x14], 0
jmp 0x432957
mov al, cl
sub al, bl
mov byte [esp + 0x14], al
mov eax, 0xff
sub eax, edx
cmp ebx, eax
jle 0x432969
mov byte [esp + 0x12], 0xff
jmp 0x432970
lea eax, [edx + ebx]
mov byte [esp + 0x12], al
movzx edx, byte [esp + 0x10]
mov eax, 0xff
sub eax, edx
cmp ebx, eax
jle 0x432987
mov byte [esp + 0x10], 0xff
jmp 0x43298e
lea eax, [edx + ebx]
mov byte [esp + 0x10], al
mov edx, 0xff
sub edx, ecx
cmp ebx, edx
jle 0x4329a0
mov byte [esp + 0x15], 0xff
jmp 0x4329a7
lea eax, [ecx + ebx]
mov byte [esp + 0x15], al
mov esi, dword [esp + 0x3c]
mov ecx, dword [ebp + 0x18]
mov edi, edi
xor eax, eax
cmp byte [esp + 0x17], al
je 0x4329c0
cmp edi, dword [ebp + 0x14]
setge al
jmp 0x4329c6
cmp edi, dword [ebp + 0x14]
setle al
test eax, eax
je 0x432a08
mov esi, dword [ebp + 0x10]
lea ecx, [ecx]
xor eax, eax
cmp byte [esp + 0x16], al
je 0x4329df
cmp esi, ecx
setge al
jmp 0x4329e4
cmp esi, ecx
setle al
test eax, eax
je 0x432a81
mov eax, dword [esp + 0x1c]
push esi
push edi
push eax
call dword [sym.imp.GDI32.dll_GetPixel]
cmp ebx, 1
jge 0x432a3b
cmp eax, dword [ebp + 0x1c]
jne 0x432a6c
mov byte [esp + 0xf], 1
mov eax, dword [esp + 0x1c]
push eax
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp byte [esp + 0xf], 0
jne 0x432a93
mov ecx, dword [0x4a13a4]
push 1
push 0
push 0xffffffffffffffff
push 0x4916f4
call fcn.004668b0
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 + 0x11]
jb 0x432a69
cmp al, byte [esp + 0x12]
ja 0x432a69
cmp cl, byte [esp + 0x13]
jb 0x432a69
cmp cl, byte [esp + 0x10]
ja 0x432a69
cmp dl, byte [esp + 0x14]
jb 0x432a69
cmp dl, byte [esp + 0x15]
jbe 0x432a03
mov ebx, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
xor eax, eax
cmp byte [esp + 0x16], al
sete al
lea esi, [esi + eax*2 - 1]
jmp 0x4329d0
xor edx, edx
cmp byte [esp + 0x17], dl
sete dl
lea edi, [edi + edx*2 - 1]
jmp 0x4329b0
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x432aad
mov eax, edi
sub eax, dword [esp + 0x40]
push 0x18
cdq
push edx
push eax
mov eax, ecx
call fcn.004010d0
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x432ac7
mov eax, esi
sub eax, dword [esp + 0x44]
cdq
push 0x18
push edx
push eax
mov eax, ecx
call fcn.004010d0
mov ecx, dword [0x4a13a4]
push 1
push 0
push 0xffffffffffffffff
push 0x4900b0
call fcn.004668b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20