Function at 0x438740
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 0x43876f
mov eax, str.Fast
call fcn.0046f4b0
mov byte [esp + 0x16], 0
test eax, eax
je 0x438774
mov byte [esp + 0x16], 1
mov eax, 0x4a44d4
mov ecx, esi
call fcn.0046f4b0
test eax, eax
setne al
mov byte [esp + 0x1b], al
test al, al
je 0x4387b4
mov eax, dword [ebp + 0x1c]
mov ecx, eax
shr ecx, 8
movzx edx, cl
movzx ecx, al
mov dword [esp + 0x2c], 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 0x4387d6
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 + 0x2c], eax
cmp byte [ebp + 0x24], 0
mov ecx, dword [0x4c1e48]
mov dword [esp + 0x3c], ecx
je 0x4387ea
xor esi, esi
jmp 0x4387fa
mov eax, dword [ebp + 8]
mov dl, 1
cmp dl, byte [eax + 1]
sbb esi, esi
and esi, dword [0x4c1e4c]
mov dword [esp + 0x38], esi
cmp ecx, edi
je 0x43880d
push 1
push edi
push 0xffffffffffffffff
push edi
call fcn.00471c00
cmp esi, edi
je 0x43881e
push 1
push edi
push 0xffffffffffffffff
push edi
mov ecx, esi
call fcn.00471c00
mov ecx, dword [0x4be3fc]
movzx esi, word [ecx + 0xe8]
and esi, 3
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
cmp esi, 2
je 0x43888e
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, eax
test edi, edi
je 0x43888e
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x43888e
test esi, esi
jne 0x438864
lea edx, [esp + 0x44]
push edx
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x43887a
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 0x43888e
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
add dword [esp + 0x20], eax
add dword [esp + 0x24], ecx
mov esi, dword [ebp + 0xc]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
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 0x4388b2
xor ebx, ebx
mov dword [ebp + 0x20], ebx
jmp 0x4388df
cmp ebx, 0xff
jle 0x4388c4
mov ebx, 0xff
mov dword [ebp + 0x20], ebx
jmp 0x4388c8
test ebx, ebx
jle 0x4388df
mov eax, dword [ebp + 0x1c]
mov edx, eax
shr edx, 8
mov byte [esp + 0x15], al
shr eax, 0x10
mov byte [esp + 0x13], dl
mov byte [esp + 0x14], al
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov dword [esp + 0x28], eax
test eax, eax
je 0x438bde
cmp byte [esp + 0x16], 0
mov byte [esp + 0x17], 0
je 0x438c7e
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 + 0x1c], eax
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x28]
push eax
inc esi
inc edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esp + 0x30], eax
test eax, eax
je 0x438b87
mov ecx, dword [esp + 0x28]
push edi
push esi
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0x34], eax
test eax, eax
je 0x438b87
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 0x438b87
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [esp + 0x28]
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 0x438b87
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.00438530
add esp, 0x14
mov dword [esp + 0x1c], eax
test eax, eax
je 0x438b87
mov edi, dword [esp + 0x40]
mov al, byte [esp + 0x1a]
imul edi, dword [esp + 0x44]
mov ecx, dword [esp + 0x1c]
test al, al
je 0x4389ee
xor esi, esi
test edi, edi
jle 0x4389f2
lea ecx, [ecx]
and dword [ecx + esi*4], 0xf8f8f8f8
inc esi
cmp esi, edi
jl 0x4389e0
jmp 0x4389f2
mov esi, dword [esp + 0x44]
cmp byte [ebp + 0x24], 0
je 0x438a41
mov ecx, dword [ecx]
and ecx, 0xffffff
cmp byte [esp + 0x1b], 0
je 0x438a0b
mov eax, ecx
jmp 0x438a10
call fcn.004304d0
push eax
lea eax, [esp + 0x5c]
push str.0x_06X
push eax
call fcn.004885b3
add esp, 0xc
push 1
push 0
push 0xffffffffffffffff
lea ecx, [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x4c]
call fcn.00471c00
mov byte [esp + 0x17], 1
jmp 0x438b8b
cmp ebx, 1
jge 0x438a78
test al, al
mov eax, dword [esp + 0x2c]
je 0x438a53
and eax, 0xf8f8f8f8
xor esi, esi
test edi, edi
jle 0x438b6f
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + esi*4]
and edx, 0xffffff
cmp edx, eax
je 0x438a37
inc esi
cmp esi, edi
jl 0x438a61
jmp 0x438b6f
test al, al
je 0x438a8a
mov al, pe_nt_image_headers32
and byte [esp + 0x15], al
and byte [esp + 0x13], al
and byte [esp + 0x14], al
movzx eax, byte [esp + 0x15]
mov dword [esp + 0x2c], eax
cmp ebx, eax
jle 0x438a9e
mov byte [esp + 0x18], 0
jmp 0x438aa4
sub al, bl
mov byte [esp + 0x18], al
movzx edx, byte [esp + 0x13]
mov dword [esp + 0x44], edx
cmp ebx, edx
jle 0x438ab8
mov byte [esp + 0x16], 0
jmp 0x438ac0
mov al, dl
sub al, bl
mov byte [esp + 0x16], al
movzx ecx, byte [esp + 0x14]
cmp ebx, ecx
jle 0x438ad0
mov byte [esp + 0x14], 0
jmp 0x438ad8
mov al, cl
sub al, bl
mov byte [esp + 0x14], al
mov eax, 0xff
sub eax, dword [esp + 0x2c]
cmp ebx, eax
jle 0x438aec
mov byte [esp + 0x19], 0xff
jmp 0x438afa
mov edx, dword [esp + 0x44]
mov al, bl
add al, byte [esp + 0x2c]
mov byte [esp + 0x19], al
mov eax, 0xff
sub eax, edx
cmp ebx, eax
jle 0x438b0c
mov byte [esp + 0x13], 0xff
jmp 0x438b13
lea eax, [edx + ebx]
mov byte [esp + 0x13], al
mov edx, 0xff
sub edx, ecx
cmp ebx, edx
jle 0x438b25
mov byte [esp + 0x15], 0xff
jmp 0x438b2b
add bl, cl
mov byte [esp + 0x15], bl
xor esi, esi
test edi, edi
jle 0x438b6f
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + esi*4]
mov ecx, eax
mov edx, eax
shr ecx, 0x10
shr edx, 8
cmp cl, byte [esp + 0x18]
jb 0x438b6a
cmp cl, byte [esp + 0x19]
ja 0x438b6a
cmp dl, byte [esp + 0x16]
jb 0x438b6a
cmp dl, byte [esp + 0x13]
ja 0x438b6a
cmp al, byte [esp + 0x14]
jb 0x438b6a
cmp al, byte [esp + 0x15]
jbe 0x438a37
inc esi
cmp esi, edi
jl 0x438b31
mov ecx, dword [0x4c26a8]
push 1
push 0
push 0xffffffffffffffff
push 0x49e334
call fcn.00471c00
jmp 0x438b8b
mov esi, dword [esp + 0x44]
mov eax, dword [esp + 0x28]
push eax
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edi, dword [esp + 0x30]
test edi, edi
je 0x438bb7
mov eax, dword [esp + 0x54]
test eax, eax
je 0x438bb0
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 0x438bc6
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x438bd7
push eax
call fcn.004897ff
add esp, 4
cmp byte [esp + 0x17], 0
jne 0x438c31
cmp byte [ebp + 0x24], 0
mov eax, 0x49e334
jne 0x438bee
mov eax, 0x49e5a4
mov ecx, dword [0x4be3fc]
cmp byte [ecx + 0x100], 0
jne 0x438c18
mov ecx, dword [0x4c26a8]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.00471c00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov ecx, dword [ebp + 8]
push 0x4a59a4
push 0
push eax
call fcn.0042ea30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
cmp byte [ebp + 0x24], 0
jne 0x438e4c
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x438c5f
mov eax, esi
cdq
idiv dword [esp + 0x40]
push 0x18
mov eax, edx
sub eax, dword [esp + 0x24]
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 0x438e4c
mov eax, esi
cdq
idiv dword [esp + 0x40]
sub eax, dword [esp + 0x24]
add eax, dword [ebp + 0x10]
jmp 0x438e40
cmp esi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
setg byte [esp + 0x1a]
cmp dword [ebp + 0x10], edx
setg byte [esp + 0x1b]
test ebx, ebx
jle 0x438d2f
movzx edx, byte [esp + 0x15]
cmp ebx, edx
jle 0x438ca9
mov byte [esp + 0x18], 0
jmp 0x438cb1
mov al, dl
sub al, bl
mov byte [esp + 0x18], al
movzx eax, byte [esp + 0x13]
cmp ebx, eax
jle 0x438cc1
mov byte [esp + 0x16], 0
jmp 0x438cc7
sub al, bl
mov byte [esp + 0x16], al
movzx ecx, byte [esp + 0x14]
cmp ebx, ecx
jle 0x438cd7
mov byte [esp + 0x14], 0
jmp 0x438cdf
mov al, cl
sub al, bl
mov byte [esp + 0x14], al
mov eax, 0xff
sub eax, edx
cmp ebx, eax
jle 0x438cf1
mov byte [esp + 0x19], 0xff
jmp 0x438cf8
lea eax, [edx + ebx]
mov byte [esp + 0x19], al
movzx edx, byte [esp + 0x13]
mov eax, 0xff
sub eax, edx
cmp ebx, eax
jle 0x438d0f
mov byte [esp + 0x13], 0xff
jmp 0x438d16
lea eax, [edx + ebx]
mov byte [esp + 0x13], al
mov edx, 0xff
sub edx, ecx
cmp ebx, edx
jle 0x438d28
mov byte [esp + 0x15], 0xff
jmp 0x438d2f
lea eax, [ecx + ebx]
mov byte [esp + 0x15], al
mov ecx, dword [ebp + 0x18]
mov edi, esi
mov esi, dword [esp + 0x44]
xor eax, eax
cmp byte [esp + 0x1a], al
je 0x438d48
cmp edi, dword [ebp + 0x14]
setge al
jmp 0x438d4e
cmp edi, dword [ebp + 0x14]
setle al
test eax, eax
je 0x438d8d
mov esi, dword [ebp + 0x10]
xor eax, eax
cmp byte [esp + 0x1b], al
je 0x438d64
cmp esi, ecx
setge al
jmp 0x438d69
cmp esi, ecx
setle al
test eax, eax
je 0x438e06
mov eax, dword [esp + 0x28]
push esi
push edi
push eax
call dword [sym.imp.GDI32.dll_GetPixel]
cmp ebx, 1
jge 0x438dc0
cmp eax, dword [ebp + 0x1c]
jne 0x438df1
mov byte [esp + 0x17], 1
mov eax, dword [esp + 0x28]
push eax
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp byte [esp + 0x17], 0
jne 0x438e18
mov ecx, dword [0x4c26a8]
push 1
push 0
push 0xffffffffffffffff
push 0x49e334
call fcn.00471c00
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 0x438dee
cmp al, byte [esp + 0x19]
ja 0x438dee
cmp cl, byte [esp + 0x16]
jb 0x438dee
cmp cl, byte [esp + 0x13]
ja 0x438dee
cmp dl, byte [esp + 0x14]
jb 0x438dee
cmp dl, byte [esp + 0x15]
jbe 0x438d88
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 0x438d55
xor edx, edx
cmp byte [esp + 0x1a], dl
sete dl
lea edi, [edi + edx*2 - 1]
jmp 0x438d38
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x438e32
mov eax, edi
sub eax, dword [esp + 0x20]
push 0x18
cdq
push edx
push eax
mov eax, ecx
call fcn.004010e0
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x438e4c
mov eax, esi
sub eax, dword [esp + 0x24]
cdq
push 0x18
push edx
push eax
mov eax, ecx
call fcn.004010e0
mov ecx, dword [0x4c26a8]
push 1
push 0
push 0xffffffffffffffff
push 0x49b8c0
call fcn.00471c00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20