Function at 0x436480
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
push ebx
mov ebx, dword [ebp + 0x20]
push esi
push edi
xor edi, edi
cmp byte [ebp + 0x24], 0
mov esi, ecx
jne 0x4364b1
push str.Fast
mov eax, esi
call fcn.0046caa0
add esp, 4
mov byte [esp + 0x17], 0
test eax, eax
je 0x4364b6
mov byte [esp + 0x17], 1
push 0x4975ec
mov eax, esi
call fcn.0046caa0
add esp, 4
test eax, eax
setne al
mov byte [esp + 0x1a], al
test al, al
je 0x4364f9
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 0x43651b
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 [0x4a2bd0]
mov dword [esp + 0x34], ecx
je 0x43652f
xor esi, esi
jmp 0x43653f
mov eax, dword [ebp + 8]
mov dl, 1
cmp dl, byte [eax + 1]
sbb esi, esi
and esi, dword [0x4a2bd4]
mov dword [esp + 0x38], esi
cmp ecx, edi
je 0x436552
push 1
push edi
push 0xffffffffffffffff
push edi
call fcn.0046f180
cmp esi, edi
je 0x436563
push 1
push edi
push 0xffffffffffffffff
push edi
mov ecx, esi
call fcn.0046f180
mov ecx, dword [0x49f440]
movzx esi, word [ecx + 0xcc]
and esi, 3
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
cmp esi, 2
je 0x4365d3
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, eax
test edi, edi
je 0x4365d3
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x4365d3
test esi, esi
jne 0x4365a9
lea edx, [esp + 0x40]
push edx
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x4365bf
lea edx, [esp + 0x40]
xor eax, eax
push edx
push edi
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
call dword [sym.imp.USER32.dll_ClientToScreen]
test eax, eax
je 0x4365d3
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
add dword [esp + 0x60], eax
add dword [esp + 0x64], ecx
mov esi, dword [ebp + 0xc]
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
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 0x4365f7
xor ebx, ebx
mov dword [ebp + 0x20], ebx
jmp 0x436624
cmp ebx, 0xff
jle 0x436609
mov ebx, 0xff
mov dword [ebp + 0x20], ebx
jmp 0x43660d
test ebx, ebx
jle 0x436624
mov eax, dword [ebp + 0x1c]
mov edx, eax
shr edx, 8
mov byte [esp + 0x19], al
shr eax, 0x10
mov byte [esp + 0x14], dl
mov byte [esp + 0x18], al
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov dword [esp + 0x20], eax
test eax, eax
je 0x436920
cmp byte [esp + 0x17], 0
mov byte [esp + 0x13], 0
je 0x4369c0
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 + 0x28], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x20]
push eax
inc esi
inc edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esp + 0x24], eax
test eax, eax
je 0x4368c9
mov ecx, dword [esp + 0x20]
push edi
push esi
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0x28], eax
test eax, eax
je 0x4368c9
mov edx, eax
mov eax, dword [esp + 0x24]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x3c], eax
test eax, eax
je 0x4368c9
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [esp + 0x20]
push 0xcc0020
push ecx
mov ecx, dword [esp + 0x2c]
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 0x4368c9
push 8
lea edx, [esp + 0x1f]
push edx
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x48]
push eax
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x3c]
push ecx
push edx
call fcn.00436270
add esp, 0x14
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4368c9
mov edi, dword [esp + 0x30]
mov al, byte [esp + 0x1b]
imul edi, dword [esp + 0x40]
mov ecx, dword [esp + 0x1c]
test al, al
je 0x436730
xor esi, esi
test edi, edi
jle 0x436734
and dword [ecx + esi*4], 0xf8f8f8f8
inc esi
cmp esi, edi
jl 0x436722
jmp 0x436734
mov esi, dword [esp + 0x40]
cmp byte [ebp + 0x24], 0
je 0x436783
mov ecx, dword [ecx]
and ecx, 0xffffff
cmp byte [esp + 0x1a], 0
je 0x43674d
mov eax, ecx
jmp 0x436752
call fcn.0042e560
push eax
lea eax, [esp + 0x44]
push str.0x_06X
push eax
call fcn.0047f2f8
add esp, 0xc
push 1
push 0
push 0xffffffffffffffff
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x44]
call fcn.0046f180
mov byte [esp + 0x13], 1
jmp 0x4368cd
cmp ebx, 1
jge 0x4367ba
test al, al
mov eax, dword [esp + 0x2c]
je 0x436795
and eax, 0xf8f8f8f8
xor esi, esi
test edi, edi
jle 0x4368b1
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + esi*4]
and edx, 0xffffff
cmp edx, eax
je 0x436779
inc esi
cmp esi, edi
jl 0x4367a3
jmp 0x4368b1
test al, al
je 0x4367cc
mov al, 0xf8
and byte [esp + 0x19], al
and byte [esp + 0x14], al
and byte [esp + 0x18], al
movzx eax, byte [esp + 0x19]
mov dword [esp + 0x2c], eax
cmp ebx, eax
jle 0x4367e0
mov byte [esp + 0x15], 0
jmp 0x4367e6
sub al, bl
mov byte [esp + 0x15], al
movzx edx, byte [esp + 0x14]
mov dword [esp + 0x40], edx
cmp ebx, edx
jle 0x4367fa
mov byte [esp + 0x17], 0
jmp 0x436802
mov al, dl
sub al, bl
mov byte [esp + 0x17], al
movzx ecx, byte [esp + 0x18]
cmp ebx, ecx
jle 0x436812
mov byte [esp + 0x18], 0
jmp 0x43681a
mov al, cl
sub al, bl
mov byte [esp + 0x18], al
mov eax, 0xff
sub eax, dword [esp + 0x2c]
cmp ebx, eax
jle 0x43682e
mov byte [esp + 0x16], 0xff
jmp 0x43683c
mov edx, dword [esp + 0x40]
mov al, bl
add al, byte [esp + 0x2c]
mov byte [esp + 0x16], al
mov eax, 0xff
sub eax, edx
cmp ebx, eax
jle 0x43684e
mov byte [esp + 0x14], 0xff
jmp 0x436855
lea eax, [edx + ebx]
mov byte [esp + 0x14], al
mov edx, 0xff
sub edx, ecx
cmp ebx, edx
jle 0x436867
mov byte [esp + 0x19], 0xff
jmp 0x43686d
add bl, cl
mov byte [esp + 0x19], bl
xor esi, esi
test edi, edi
jle 0x4368b1
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 + 0x15]
jb 0x4368ac
cmp cl, byte [esp + 0x16]
ja 0x4368ac
cmp dl, byte [esp + 0x17]
jb 0x4368ac
cmp dl, byte [esp + 0x14]
ja 0x4368ac
cmp al, byte [esp + 0x18]
jb 0x4368ac
cmp al, byte [esp + 0x19]
jbe 0x436779
inc esi
cmp esi, edi
jl 0x436873
mov ecx, dword [0x4a3434]
push 1
push 0
push 0xffffffffffffffff
push 0x493f18
call fcn.0046f180
jmp 0x4368cd
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x20]
push eax
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edi, dword [esp + 0x24]
test edi, edi
je 0x4368f9
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4368f2
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 0x436908
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x436919
push eax
call fcn.0047edd8
add esp, 4
cmp byte [esp + 0x13], 0
jne 0x436973
cmp byte [ebp + 0x24], 0
mov eax, 0x493f18
jne 0x436930
mov eax, 0x494060
mov ecx, dword [0x49f440]
cmp byte [ecx + 0xe4], 0
jne 0x43695a
mov ecx, dword [0x4a3434]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.0046f180
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov ecx, dword [ebp + 8]
push 0x4927f1
push 0
push eax
call fcn.0042cb70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
cmp byte [ebp + 0x24], 0
jne 0x436b97
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x4369a1
mov eax, esi
cdq
idiv dword [esp + 0x30]
push 0x18
mov eax, edx
sub eax, dword [esp + 0x64]
add eax, dword [ebp + 0xc]
cdq
push edx
push eax
mov eax, ecx
call fcn.004010d0
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x436b97
mov eax, esi
cdq
idiv dword [esp + 0x30]
sub eax, dword [esp + 0x64]
add eax, dword [ebp + 0x10]
jmp 0x436b8b
cmp esi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
setg byte [esp + 0x1b]
cmp dword [ebp + 0x10], edx
setg byte [esp + 0x1a]
test ebx, ebx
jle 0x436a71
movzx edx, byte [esp + 0x19]
cmp ebx, edx
jle 0x4369eb
mov byte [esp + 0x15], 0
jmp 0x4369f3
mov al, dl
sub al, bl
mov byte [esp + 0x15], al
movzx eax, byte [esp + 0x14]
cmp ebx, eax
jle 0x436a03
mov byte [esp + 0x17], 0
jmp 0x436a09
sub al, bl
mov byte [esp + 0x17], al
movzx ecx, byte [esp + 0x18]
cmp ebx, ecx
jle 0x436a19
mov byte [esp + 0x18], 0
jmp 0x436a21
mov al, cl
sub al, bl
mov byte [esp + 0x18], al
mov eax, 0xff
sub eax, edx
cmp ebx, eax
jle 0x436a33
mov byte [esp + 0x16], 0xff
jmp 0x436a3a
lea eax, [edx + ebx]
mov byte [esp + 0x16], al
movzx edx, byte [esp + 0x14]
mov eax, 0xff
sub eax, edx
cmp ebx, eax
jle 0x436a51
mov byte [esp + 0x14], 0xff
jmp 0x436a58
lea eax, [edx + ebx]
mov byte [esp + 0x14], al
mov edx, 0xff
sub edx, ecx
cmp ebx, edx
jle 0x436a6a
mov byte [esp + 0x19], 0xff
jmp 0x436a71
lea eax, [ecx + ebx]
mov byte [esp + 0x19], al
mov ecx, dword [ebp + 0x18]
mov edi, esi
mov esi, dword [esp + 0x40]
lea ebx, [ebx]
xor eax, eax
cmp byte [esp + 0x1b], al
je 0x436a90
cmp edi, dword [ebp + 0x14]
setge al
jmp 0x436a96
cmp edi, dword [ebp + 0x14]
setle al
test eax, eax
je 0x436ad8
mov esi, dword [ebp + 0x10]
lea ecx, [ecx]
xor eax, eax
cmp byte [esp + 0x1a], al
je 0x436aaf
cmp esi, ecx
setge al
jmp 0x436ab4
cmp esi, ecx
setle al
test eax, eax
je 0x436b51
mov eax, dword [esp + 0x20]
push esi
push edi
push eax
call dword [sym.imp.GDI32.dll_GetPixel]
cmp ebx, 1
jge 0x436b0b
cmp eax, dword [ebp + 0x1c]
jne 0x436b3c
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x20]
push eax
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp byte [esp + 0x13], 0
jne 0x436b63
mov ecx, dword [0x4a3434]
push 1
push 0
push 0xffffffffffffffff
push 0x493f18
call fcn.0046f180
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 + 0x15]
jb 0x436b39
cmp al, byte [esp + 0x16]
ja 0x436b39
cmp cl, byte [esp + 0x17]
jb 0x436b39
cmp cl, byte [esp + 0x14]
ja 0x436b39
cmp dl, byte [esp + 0x18]
jb 0x436b39
cmp dl, byte [esp + 0x19]
jbe 0x436ad3
mov ebx, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
xor eax, eax
cmp byte [esp + 0x1a], al
sete al
lea esi, [esi + eax*2 - 1]
jmp 0x436aa0
xor edx, edx
cmp byte [esp + 0x1b], dl
sete dl
lea edi, [edi + edx*2 - 1]
jmp 0x436a80
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x436b7d
mov eax, edi
sub eax, dword [esp + 0x60]
push 0x18
cdq
push edx
push eax
mov eax, ecx
call fcn.004010d0
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x436b97
mov eax, esi
sub eax, dword [esp + 0x64]
cdq
push 0x18
push edx
push eax
mov eax, ecx
call fcn.004010d0
mov ecx, dword [0x4a3434]
push 1
push 0
push 0xffffffffffffffff
push 0x492868
call fcn.0046f180
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20