Function at 0x4372d0
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 0x437301
push str.Fast
mov eax, esi
call fcn.00472320
add esp, 4
mov byte [esp + 0x16], 0
test eax, eax
je 0x437306
mov byte [esp + 0x16], 1
push 0x49d9f0
mov eax, esi
call fcn.00472320
add esp, 4
test eax, eax
setne al
mov byte [esp + 0x1a], al
test al, al
je 0x437349
mov eax, dword [ebp + 0x1c]
mov ecx, eax
shr ecx, 8
movzx edx, cl
movzx ecx, al
mov dword [esp + 0x24], 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 0x43736b
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 + 0x24], eax
cmp byte [ebp + 0x24], 0
mov ecx, dword [0x4aa178]
mov dword [esp + 0x34], ecx
je 0x43737f
xor esi, esi
jmp 0x43738f
mov eax, dword [ebp + 8]
mov dl, 1
cmp dl, byte [eax + 1]
sbb esi, esi
and esi, dword [0x4aa17c]
mov dword [esp + 0x38], esi
cmp ecx, edi
je 0x43739c
call fcn.00412c90
cmp esi, edi
je 0x4373a7
mov ecx, esi
call fcn.00412c90
mov ecx, dword [0x4a6918]
movzx esi, word [ecx + 0xd0]
and esi, 3
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
cmp esi, 2
je 0x437417
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, eax
test edi, edi
je 0x437417
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x437417
test esi, esi
jne 0x4373ed
lea edx, [esp + 0x40]
push edx
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x437403
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 0x437417
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 0x43743b
xor ebx, ebx
mov dword [ebp + 0x20], ebx
jmp 0x437468
cmp ebx, 0xff
jle 0x43744d
mov ebx, 0xff
mov dword [ebp + 0x20], ebx
jmp 0x437451
test ebx, ebx
jle 0x437468
mov eax, dword [ebp + 0x1c]
mov edx, eax
shr edx, 8
mov byte [esp + 0x19], al
shr eax, 0x10
mov byte [esp + 0x18], dl
mov byte [esp + 0x17], al
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov dword [esp + 0x20], eax
test eax, eax
je 0x4377d2
cmp byte [esp + 0x16], 0
mov byte [esp + 0x13], 0
je 0x43780a
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 + 0x2c], 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 + 0x28], eax
test eax, eax
je 0x4376fb
mov ecx, dword [esp + 0x20]
push edi
push esi
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x4376fb
mov edx, eax
mov eax, dword [esp + 0x28]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x3c], eax
test eax, eax
je 0x4376fb
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [esp + 0x20]
push 0xcc0020
push ecx
mov ecx, dword [esp + 0x30]
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 0x4376fb
push 8
lea edx, [esp + 0x1f]
push edx
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x48]
push eax
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x3c]
push ecx
push edx
call fcn.004370c0
add esp, 0x14
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4376fb
mov edi, dword [esp + 0x30]
mov al, byte [esp + 0x1b]
imul edi, dword [esp + 0x40]
mov ecx, dword [esp + 0x1c]
test al, al
je 0x437574
xor esi, esi
test edi, edi
jle 0x437578
and dword [ecx + esi*4], 0xf8f8f8f8
inc esi
cmp esi, edi
jl 0x437566
jmp 0x437578
mov esi, dword [esp + 0x40]
cmp byte [ebp + 0x24], 0
je 0x4375c8
mov ecx, dword [ecx]
and ecx, 0xffffff
cmp byte [esp + 0x1a], 0
je 0x437591
mov eax, ecx
jmp 0x437596
call fcn.0042eb70
push eax
lea eax, [esp + 0x44]
push str.0x_06X
push eax
call fcn.00485318
mov edx, dword [esp + 0x40]
add esp, 0xc
push 1
push 0
push 0xffffffffffffffff
lea ecx, [esp + 0x4c]
push ecx
push edx
call fcn.00474cc0
mov byte [esp + 0x13], 1
jmp 0x4376ff
cmp ebx, 1
jge 0x437607
test al, al
mov eax, dword [esp + 0x24]
je 0x4375da
and eax, 0xf8f8f8f8
xor esi, esi
test edi, edi
jle 0x4376ff
mov ecx, dword [esp + 0x1c]
jmp 0x4375f0
mov edx, dword [ecx + esi*4]
and edx, 0xffffff
cmp edx, eax
je 0x4375be
inc esi
cmp esi, edi
jl 0x4375f0
jmp 0x4376ff
test al, al
je 0x437619
mov al, 0xf8
and byte [esp + 0x19], al
and byte [esp + 0x18], al
and byte [esp + 0x17], al
movzx edx, byte [esp + 0x19]
mov dword [esp + 0x24], edx
cmp ebx, edx
jle 0x43762d
mov byte [esp + 0x14], 0
jmp 0x437635
mov al, dl
sub al, bl
mov byte [esp + 0x14], al
movzx ecx, byte [esp + 0x18]
cmp ebx, ecx
jle 0x437645
mov byte [esp + 0x16], 0
jmp 0x43764d
mov al, cl
sub al, bl
mov byte [esp + 0x16], al
movzx eax, byte [esp + 0x17]
cmp ebx, eax
jle 0x43765d
mov byte [esp + 0x18], 0
jmp 0x437669
mov dl, al
sub dl, bl
mov byte [esp + 0x18], dl
mov edx, dword [esp + 0x24]
mov esi, 0xff
sub esi, edx
cmp ebx, esi
jle 0x43767b
mov byte [esp + 0x15], 0xff
jmp 0x437685
mov dl, byte [esp + 0x24]
add dl, bl
mov byte [esp + 0x15], dl
mov edx, 0xff
sub edx, ecx
cmp ebx, edx
jle 0x437697
mov byte [esp + 0x17], 0xff
jmp 0x43769d
add cl, bl
mov byte [esp + 0x17], cl
mov ecx, 0xff
sub ecx, eax
cmp ebx, ecx
jle 0x4376af
mov byte [esp + 0x19], 0xff
jmp 0x4376b5
add al, bl
mov byte [esp + 0x19], al
xor esi, esi
test edi, edi
jle 0x4376ff
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + esi*4]
mov ecx, eax
mov edx, eax
shr ecx, 0x10
shr edx, 8
cmp cl, byte [esp + 0x14]
jb 0x4376f4
cmp cl, byte [esp + 0x15]
ja 0x4376f4
cmp dl, byte [esp + 0x16]
jb 0x4376f4
cmp dl, byte [esp + 0x17]
ja 0x4376f4
cmp al, byte [esp + 0x18]
jb 0x4376f4
cmp al, byte [esp + 0x19]
jbe 0x4375be
inc esi
cmp esi, edi
jl 0x4376bb
jmp 0x4376ff
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 + 0x28]
test edi, edi
je 0x43772b
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x437724
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x43773a
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [esp + 0x1c], 0
je 0x4377d2
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00484df8
add esp, 4
cmp byte [ebp + 0x24], 0
jne 0x4377a5
cmp byte [esp + 0x13], 0
je 0x4377b1
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x437783
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 0x4377a5
mov eax, esi
cdq
idiv dword [esp + 0x30]
push 0x18
sub eax, dword [esp + 0x68]
add eax, dword [ebp + 0x10]
cdq
push edx
push eax
mov eax, ecx
call fcn.004010d0
cmp byte [esp + 0x13], 0
mov eax, 0x4988ac
jne 0x4377b6
mov eax, 0x499f90
mov edx, dword [0x4aaa2c]
push 1
push 0
push 0xffffffffffffffff
push eax
push edx
call fcn.00474cc0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
cmp byte [ebp + 0x24], 0
mov eax, 0x499f90
jne 0x4377e2
mov eax, 0x49a10c
mov ecx, dword [0x4a6918]
cmp byte [ecx + 0xe8], 0
je 0x4377b6
mov ecx, dword [ebp + 8]
push 0x498861
push 0
push eax
call fcn.0042d1e0
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 + 0x1b]
cmp dword [ebp + 0x10], eax
setg byte [esp + 0x1a]
test ebx, ebx
jle 0x4378c1
movzx edx, byte [esp + 0x19]
mov dword [esp + 0x24], edx
cmp ebx, edx
jle 0x437839
mov byte [esp + 0x14], 0
jmp 0x437841
mov al, dl
sub al, bl
mov byte [esp + 0x14], al
movzx ecx, byte [esp + 0x18]
cmp ebx, ecx
jle 0x437851
mov byte [esp + 0x16], 0
jmp 0x437859
mov al, cl
sub al, bl
mov byte [esp + 0x16], al
movzx eax, byte [esp + 0x17]
cmp ebx, eax
jle 0x437869
mov byte [esp + 0x18], 0
jmp 0x437875
mov dl, al
sub dl, bl
mov byte [esp + 0x18], dl
mov edx, dword [esp + 0x24]
mov edi, 0xff
sub edi, edx
cmp ebx, edi
jle 0x437887
mov byte [esp + 0x15], 0xff
jmp 0x437891
mov dl, byte [esp + 0x24]
add dl, bl
mov byte [esp + 0x15], dl
mov edx, 0xff
sub edx, ecx
cmp ebx, edx
jle 0x4378a3
mov byte [esp + 0x17], 0xff
jmp 0x4378a9
add cl, bl
mov byte [esp + 0x17], cl
mov ecx, 0xff
sub ecx, eax
cmp ebx, ecx
jle 0x4378bb
mov byte [esp + 0x19], 0xff
jmp 0x4378c1
add al, bl
mov byte [esp + 0x19], al
mov ecx, dword [ebp + 0x18]
mov dl, byte [esp + 0x1b]
mov edi, esi
mov esi, dword [esp + 0x40]
mov eax, dword [ebp + 0x14]
test dl, dl
je 0x4378de
xor edx, edx
cmp edi, eax
setge dl
jmp 0x4378e5
xor edx, edx
cmp edi, eax
setle dl
mov eax, edx
test eax, eax
je 0x437928
mov esi, dword [ebp + 0x10]
mov edi, edi
xor eax, eax
cmp byte [esp + 0x1a], al
je 0x4378ff
cmp esi, ecx
setge al
jmp 0x437904
cmp esi, ecx
setle al
test eax, eax
je 0x4379a2
mov eax, dword [esp + 0x20]
push esi
push edi
push eax
call dword [sym.imp.GDI32.dll_GetPixel]
cmp ebx, 1
jge 0x43795c
cmp eax, dword [ebp + 0x1c]
jne 0x43798d
mov byte [esp + 0x13], 1
mov ecx, dword [esp + 0x20]
push ecx
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp byte [esp + 0x13], 0
jne 0x4379b6
mov edx, dword [0x4aaa2c]
push 1
push 0
push 0xffffffffffffffff
push 0x499f90
push edx
call fcn.00474cc0
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 + 0x14]
jb 0x43798a
cmp al, byte [esp + 0x15]
ja 0x43798a
cmp cl, byte [esp + 0x16]
jb 0x43798a
cmp cl, byte [esp + 0x17]
ja 0x43798a
cmp dl, byte [esp + 0x18]
jb 0x43798a
cmp dl, byte [esp + 0x19]
jbe 0x437923
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 0x4378f0
mov dl, byte [esp + 0x1b]
xor eax, eax
test dl, dl
sete al
lea edi, [edi + eax*2 - 1]
jmp 0x4378ce
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x4379d0
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 0x4379ea
mov eax, esi
sub eax, dword [esp + 0x64]
push 0x18
cdq
push edx
push eax
mov eax, ecx
call fcn.004010d0
mov eax, dword [0x4aaa2c]
push 1
push 0
push 0xffffffffffffffff
push 0x4988ac
push eax
call fcn.00474cc0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20