Function at 0x43a310
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
push ebx
mov ebx, dword [ebp + 0x20]
push esi
push edi
xor edi, edi
cmp byte [ebp + 0x24], 0
mov esi, ecx
jne 0x43a33f
mov eax, str.Fast
call fcn.00476660
mov byte [esp + 0x16], 0
test eax, eax
je 0x43a344
mov byte [esp + 0x16], 1
mov eax, 0x4ad1e4
mov ecx, esi
call fcn.00476660
test eax, eax
setne al
mov byte [esp + 0x1b], al
test al, al
je 0x43a384
mov eax, dword [ebp + 0x1c]
mov ecx, eax
shr ecx, 8
movzx edx, cl
movzx ecx, al
mov dword [esp + 0x1c], 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 0x43a3a6
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 + 0x1c], eax
cmp byte [ebp + 0x24], 0
mov ecx, dword [0x4ca4b0]
mov dword [esp + 0x3c], ecx
je 0x43a3ba
xor esi, esi
jmp 0x43a3ca
mov eax, dword [ebp + 8]
mov dl, 1
cmp dl, byte [eax + 1]
sbb esi, esi
and esi, dword [0x4ca4b4]
mov dword [esp + 0x38], esi
cmp ecx, edi
je 0x43a3d7
call fcn.00414c20
cmp esi, edi
je 0x43a3e2
mov ecx, esi
call fcn.00414c20
mov ecx, dword [0x4c6a44]
movzx esi, word [ecx + 0xf0]
and esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
cmp esi, 2
je 0x43a452
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, eax
test edi, edi
je 0x43a452
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x43a452
test esi, esi
jne 0x43a428
lea edx, [esp + 0x44]
push edx
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x43a43e
lea edx, [esp + 0x44]
xor eax, eax
push edx
push edi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
call dword [sym.imp.USER32.dll_ClientToScreen]
test eax, eax
je 0x43a452
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
add dword [esp + 0x24], eax
add dword [esp + 0x28], ecx
mov esi, dword [ebp + 0xc]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
add dword [ebp + 0x10], ecx
add dword [ebp + 0x14], eax
add dword [ebp + 0x18], ecx
add esi, eax
mov dword [ebp + 0xc], esi
test ebx, ebx
jns 0x43a476
xor ebx, ebx
mov dword [ebp + 0x20], ebx
jmp 0x43a4a3
cmp ebx, 0xff
jle 0x43a488
mov ebx, 0xff
mov dword [ebp + 0x20], ebx
jmp 0x43a48c
test ebx, ebx
jle 0x43a4a3
mov eax, dword [ebp + 0x1c]
mov edx, eax
shr edx, 8
mov byte [esp + 0x14], al
shr eax, 0x10
mov byte [esp + 0x13], dl
mov byte [esp + 0x15], al
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x43a805
cmp byte [esp + 0x16], 0
mov byte [esp + 0x17], 0
je 0x43a83d
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
sub esi, dword [ebp + 0xc]
sub edi, dword [ebp + 0x10]
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x2c]
push eax
inc esi
inc edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esp + 0x30], eax
test eax, eax
je 0x43a72e
mov ecx, dword [esp + 0x2c]
push edi
push esi
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0x34], eax
test eax, eax
je 0x43a72e
mov edx, eax
mov eax, dword [esp + 0x30]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x54], eax
test eax, eax
je 0x43a72e
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [esp + 0x2c]
push 0xcc0020
push ecx
mov ecx, dword [esp + 0x38]
push edx
push eax
push edi
push esi
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
je 0x43a72e
push 8
lea edx, [esp + 0x1e]
push edx
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x4c]
push ecx
push edx
call fcn.0043a100
add esp, 0x14
mov dword [esp + 0x20], eax
test eax, eax
je 0x43a72e
mov edi, dword [esp + 0x40]
mov al, byte [esp + 0x1a]
imul edi, dword [esp + 0x44]
mov ecx, dword [esp + 0x20]
test al, al
je 0x43a5af
xor esi, esi
test edi, edi
jle 0x43a5b3
and dword [ecx + esi*4], 0xf8f8f8f8
inc esi
cmp esi, edi
jl 0x43a5a1
jmp 0x43a5b3
mov esi, dword [esp + 0x44]
cmp byte [ebp + 0x24], 0
je 0x43a603
mov ecx, dword [ecx]
and ecx, 0xffffff
cmp byte [esp + 0x1b], 0
je 0x43a5cc
mov eax, ecx
jmp 0x43a5d1
call fcn.00431ac0
push eax
lea eax, [esp + 0x5c]
push str.0x_06X
push eax
call fcn.0048fe13
mov edx, dword [esp + 0x48]
add esp, 0xc
push 1
push 0
push 0xffffffffffffffff
lea ecx, [esp + 0x64]
push ecx
push edx
call fcn.00479320
mov byte [esp + 0x17], 1
jmp 0x43a732
cmp ebx, 1
jge 0x43a63a
test al, al
mov eax, dword [esp + 0x1c]
je 0x43a615
and eax, 0xf8f8f8f8
xor esi, esi
test edi, edi
jle 0x43a732
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + esi*4]
and edx, 0xffffff
cmp edx, eax
je 0x43a5f9
inc esi
cmp esi, edi
jl 0x43a623
jmp 0x43a732
test al, al
je 0x43a64c
mov al, 0xf8
and byte [esp + 0x14], al
and byte [esp + 0x13], al
and byte [esp + 0x15], al
movzx edx, byte [esp + 0x14]
mov dword [esp + 0x1c], edx
cmp ebx, edx
jle 0x43a660
mov byte [esp + 0x18], 0
jmp 0x43a668
mov al, dl
sub al, bl
mov byte [esp + 0x18], al
movzx ecx, byte [esp + 0x13]
cmp ebx, ecx
jle 0x43a678
mov byte [esp + 0x16], 0
jmp 0x43a680
mov al, cl
sub al, bl
mov byte [esp + 0x16], al
movzx eax, byte [esp + 0x15]
cmp ebx, eax
jle 0x43a690
mov byte [esp + 0x13], 0
jmp 0x43a69c
mov dl, al
sub dl, bl
mov byte [esp + 0x13], dl
mov edx, dword [esp + 0x1c]
mov esi, 0xff
sub esi, edx
cmp ebx, esi
jle 0x43a6ae
mov byte [esp + 0x19], 0xff
jmp 0x43a6b8
mov dl, byte [esp + 0x1c]
add dl, bl
mov byte [esp + 0x19], dl
mov edx, 0xff
sub edx, ecx
cmp ebx, edx
jle 0x43a6ca
mov byte [esp + 0x15], 0xff
jmp 0x43a6d0
add cl, bl
mov byte [esp + 0x15], cl
mov ecx, 0xff
sub ecx, eax
cmp ebx, ecx
jle 0x43a6e2
mov byte [esp + 0x14], 0xff
jmp 0x43a6e8
add al, bl
mov byte [esp + 0x14], al
xor esi, esi
test edi, edi
jle 0x43a732
mov edx, dword [esp + 0x20]
mov eax, dword [edx + esi*4]
mov ecx, eax
mov edx, eax
shr ecx, 0x10
shr edx, 8
cmp cl, byte [esp + 0x18]
jb 0x43a727
cmp cl, byte [esp + 0x19]
ja 0x43a727
cmp dl, byte [esp + 0x16]
jb 0x43a727
cmp dl, byte [esp + 0x15]
ja 0x43a727
cmp al, byte [esp + 0x13]
jb 0x43a727
cmp al, byte [esp + 0x14]
jbe 0x43a5f9
inc esi
cmp esi, edi
jl 0x43a6ee
jmp 0x43a732
mov esi, dword [esp + 0x44]
mov eax, dword [esp + 0x2c]
push eax
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edi, dword [esp + 0x30]
test edi, edi
je 0x43a75e
mov eax, dword [esp + 0x54]
test eax, eax
je 0x43a757
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x43a76d
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [esp + 0x20], 0
je 0x43a805
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00490351
add esp, 4
cmp byte [ebp + 0x24], 0
jne 0x43a7d8
cmp byte [esp + 0x17], 0
je 0x43a7e4
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x43a7b6
mov eax, esi
cdq
idiv dword [esp + 0x40]
push 0x18
mov eax, edx
sub eax, dword [esp + 0x28]
add eax, dword [ebp + 0xc]
cdq
push edx
push eax
mov eax, ecx
call fcn.004010e0
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x43a7d8
mov eax, esi
cdq
idiv dword [esp + 0x40]
push 0x18
sub eax, dword [esp + 0x2c]
add eax, dword [ebp + 0x10]
cdq
push edx
push eax
mov eax, ecx
call fcn.004010e0
cmp byte [esp + 0x17], 0
mov eax, 0x4a38f0
jne 0x43a7e9
mov eax, 0x4a6244
mov edx, dword [0x4cad68]
push 1
push 0
push 0xffffffffffffffff
push eax
push edx
call fcn.00479320
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
cmp byte [ebp + 0x24], 0
mov eax, 0x4a6244
jne 0x43a815
mov eax, 0x4a679c
mov ecx, dword [0x4c6a44]
test byte [ecx + 0x100], 1
je 0x43a7e9
mov ecx, dword [ebp + 8]
push 0x4a3860
push 0
push eax
call fcn.0042fe50
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
cmp esi, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
setg byte [esp + 0x1a]
cmp dword [ebp + 0x10], eax
setg byte [esp + 0x1b]
test ebx, ebx
jle 0x43a8f4
movzx edx, byte [esp + 0x14]
mov dword [esp + 0x1c], edx
cmp ebx, edx
jle 0x43a86c
mov byte [esp + 0x18], 0
jmp 0x43a874
mov al, dl
sub al, bl
mov byte [esp + 0x18], al
movzx ecx, byte [esp + 0x13]
cmp ebx, ecx
jle 0x43a884
mov byte [esp + 0x16], 0
jmp 0x43a88c
mov al, cl
sub al, bl
mov byte [esp + 0x16], al
movzx eax, byte [esp + 0x15]
cmp ebx, eax
jle 0x43a89c
mov byte [esp + 0x13], 0
jmp 0x43a8a8
mov dl, al
sub dl, bl
mov byte [esp + 0x13], dl
mov edx, dword [esp + 0x1c]
mov edi, 0xff
sub edi, edx
cmp ebx, edi
jle 0x43a8ba
mov byte [esp + 0x19], 0xff
jmp 0x43a8c4
mov dl, byte [esp + 0x1c]
add dl, bl
mov byte [esp + 0x19], dl
mov edx, 0xff
sub edx, ecx
cmp ebx, edx
jle 0x43a8d6
mov byte [esp + 0x15], 0xff
jmp 0x43a8dc
add cl, bl
mov byte [esp + 0x15], cl
mov ecx, 0xff
sub ecx, eax
cmp ebx, ecx
jle 0x43a8ee
mov byte [esp + 0x14], 0xff
jmp 0x43a8f4
add al, bl
mov byte [esp + 0x14], al
mov ecx, dword [ebp + 0x18]
mov dl, byte [esp + 0x1a]
mov edi, esi
mov esi, dword [esp + 0x44]
mov eax, dword [ebp + 0x14]
test dl, dl
je 0x43a911
xor edx, edx
cmp edi, eax
setge dl
jmp 0x43a918
xor edx, edx
cmp edi, eax
setle dl
mov eax, edx
test eax, eax
je 0x43a959
mov esi, dword [ebp + 0x10]
xor eax, eax
cmp byte [esp + 0x1b], al
je 0x43a930
cmp esi, ecx
setge al
jmp 0x43a935
cmp esi, ecx
setle al
test eax, eax
je 0x43a9d3
mov eax, dword [esp + 0x2c]
push esi
push edi
push eax
call dword [sym.imp.GDI32.dll_GetPixel]
cmp ebx, 1
jge 0x43a98d
cmp eax, dword [ebp + 0x1c]
jne 0x43a9be
mov byte [esp + 0x17], 1
mov ecx, dword [esp + 0x2c]
push ecx
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp byte [esp + 0x17], 0
jne 0x43a9e7
mov edx, dword [0x4cad68]
push 1
push 0
push 0xffffffffffffffff
push 0x4a6244
push edx
call fcn.00479320
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 + 0x18]
jb 0x43a9bb
cmp al, byte [esp + 0x19]
ja 0x43a9bb
cmp cl, byte [esp + 0x16]
jb 0x43a9bb
cmp cl, byte [esp + 0x15]
ja 0x43a9bb
cmp dl, byte [esp + 0x13]
jb 0x43a9bb
cmp dl, byte [esp + 0x14]
jbe 0x43a954
mov ebx, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
xor eax, eax
cmp byte [esp + 0x1b], al
sete al
lea esi, [esi + eax*2 - 1]
jmp 0x43a921
mov dl, byte [esp + 0x1a]
xor eax, eax
test dl, dl
sete al
lea edi, [edi + eax*2 - 1]
jmp 0x43a901
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x43aa01
mov eax, edi
sub eax, dword [esp + 0x24]
push 0x18
cdq
push edx
push eax
mov eax, ecx
call fcn.004010e0
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x43aa1b
mov eax, esi
sub eax, dword [esp + 0x28]
push 0x18
cdq
push edx
push eax
mov eax, ecx
call fcn.004010e0
mov eax, dword [0x4cad68]
push 1
push 0
push 0xffffffffffffffff
push 0x4a38f0
push eax
call fcn.00479320
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20