Function at 0x4216e0
Capabilities:
Capture screenshot

Disassembly:
mov eax, dword [esp + 0x20]
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x64]
xor ebp, ebp
mov dword [eax], ebp
mov eax, dword [edi + 0x2314]
cmp eax, ebp
jne 0x421702
mov eax, 0x439050
push 4
push str.pic:
push eax
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x42191c
mov eax, dword [edi + 0x2314]
mov dword [esp + 0x18], ebp
cmp eax, ebp
jne 0x42172e
mov eax, 0x439050
lea ecx, [esp + 0x14]
push ebp
push ecx
lea edx, [esp + 0x20]
lea ecx, [esp + 0x40]
push edx
add eax, 4
push ecx
push eax
push edi
call fcn.004243c0
add esp, 0x18
test eax, eax
je 0x421c7b
mov ecx, dword [esp + 0x70]
mov esi, dword [esp + 0x68]
cmp ecx, esi
jg 0x421777
push 0x43a4c8
push edi
call fcn.00420310
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
mov edx, dword [esp + 0x74]
mov ebp, dword [esp + 0x6c]
cmp edx, ebp
jg 0x42179b
push 0x43a4b4
push edi
call fcn.00420310
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
mov eax, dword [esp + 0x3c]
cmp esi, eax
jl 0x4217bb
push 0x43a49c
push edi
call fcn.00420310
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
mov ebx, dword [esp + 0x40]
cmp ebp, ebx
jl 0x4217db
push 0x43a484
push edi
call fcn.00420310
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
test ecx, ecx
jge 0x4217f7
push 0x43a470
push edi
call fcn.00420310
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
test edx, edx
jge 0x421813
push 0x43a45c
push edi
call fcn.00420310
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
test esi, esi
jge 0x421819
xor esi, esi
test ebp, ebp
jge 0x42181f
xor ebp, ebp
cmp ecx, eax
jle 0x421827
mov dword [esp + 0x70], eax
cmp edx, ebx
jle 0x42182d
mov edx, ebx
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x88]
mov ebx, dword [esp + 0x78]
sub edx, ebp
mov dword [eax], esi
mov dword [ecx], ebp
mov ecx, 0xa
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x70]
mov dword [ebx + 8], edx
mov edx, dword [esp + 0x7c]
sub eax, esi
mov dword [ebx + 4], eax
mov dword [ebx], 0x28
lea eax, [eax*4 + 3]
mov word [ebx + 0xc], 1
and al, 0xfc
mov word [ebx + 0xe], 0x20
mov dword [ebx + 0x10], 0
mov dword [edx], eax
imul eax, dword [ebx + 8]
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, dword [esp + 0x84]
add esp, 4
test eax, eax
mov dword [ecx], eax
jne 0x4218bb
mov edx, dword [esp + 0x64]
push 0x43a44c
push edx
call fcn.00420310
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
mov ecx, dword [ebx + 8]
xor eax, eax
test ecx, ecx
jle 0x422156
lea ecx, [esi*4]
mov dword [esp + 0x64], ecx
mov edx, dword [esp + 0x7c]
lea esi, [eax + ebp]
imul esi, dword [esp + 0x14]
mov ecx, dword [edx]
mov edx, dword [esp + 0x64]
mov edi, dword [esp + 0x18]
add esi, edx
add esi, edi
mov edi, ecx
imul edi, eax
mov edx, dword [esp + 0x80]
add edi, dword [edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
inc eax
rep movsb byte es:[edi], byte [esi]
cmp eax, dword [ebx + 8]
jl 0x4218d3
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x50
ret
mov ebx, dword [edi + 0x18]
push edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ebx
call fcn.0042b470
add esp, 4
test eax, eax
jne 0x421c7b
cmp dword [edi + 0x28], ebp
jne 0x421941
mov dword [esp + 0x10], ebp
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetWindowDC]
mov esi, eax
cmp esi, ebp
mov dword [esp + 0x14], esi
jne 0x421972
mov ecx, dword [edi + 0x18]
push ecx
push 0x43a42c
push edi
call fcn.00420310
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
mov ebp, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0xc
push esi
call ebp
cmp eax, 0x20
je 0x4219ab
cmp eax, 0x10
je 0x4219ab
push 0x43a408
push edi
call fcn.00420310
add esp, 8
push esi
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x50
ret
test ebx, ebx
jne 0x4219bd
push 8
push esi
call ebp
push 0xa
push esi
mov ebx, eax
call ebp
jmp 0x421a07
lea eax, [esp + 0x28]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClientRect]
push ebx
call fcn.004202e0
mov ecx, dword [edi + 0x28]
add esp, 4
cmp ecx, 5
jne 0x4219ed
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x4219ed
mov ebx, dword [edi + 0x20]
mov eax, dword [edi + 0x24]
jmp 0x421a07
mov ebx, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
sub ebx, edx
sub eax, ecx
mov dword [edi + 0x20], ebx
mov dword [edi + 0x24], eax
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x70]
cmp edx, ecx
jg 0x421a37
push 0x43a4c8
push edi
call fcn.00420310
mov ecx, dword [esp + 0x18]
add esp, 8
push esi
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x50
ret
mov ebp, dword [esp + 0x6c]
mov edx, dword [esp + 0x74]
cmp edx, ebp
jg 0x421a4d
push 0x43a4b4
jmp 0x42198c
cmp ecx, ebx
jl 0x421aa1
mov eax, dword [esp + 0x18]
test eax, eax
je 0x421a7d
push 0x43a3f0
push edi
call fcn.00420310
mov eax, dword [esp + 0x18]
add esp, 8
push esi
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x50
ret
push 0x43a3d8
push edi
call fcn.00420310
mov eax, dword [esp + 0x18]
add esp, 8
push esi
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x50
ret
cmp ebp, eax
jl 0x421af5
mov eax, dword [esp + 0x18]
test eax, eax
je 0x421ad1
push 0x43a3c0
push edi
call fcn.00420310
mov ecx, dword [esp + 0x18]
add esp, 8
push esi
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x50
ret
push 0x43a3a8
push edi
call fcn.00420310
mov ecx, dword [esp + 0x18]
add esp, 8
push esi
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x50
ret
mov edx, dword [esp + 0x70]
test edx, edx
jge 0x421b07
push 0x43a470
jmp 0x42198c
mov edx, dword [esp + 0x74]
test edx, edx
jge 0x421b33
push 0x43a45c
push edi
call fcn.00420310
mov eax, dword [esp + 0x18]
add esp, 8
push esi
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x50
ret
test ecx, ecx
jge 0x421b3f
mov dword [esp + 0x68], 0
test ebp, ebp
jge 0x421b49
xor ebp, ebp
mov dword [esp + 0x6c], ebp
cmp dword [esp + 0x70], ebx
jle 0x421b53
mov dword [esp + 0x70], ebx
cmp edx, eax
jle 0x421b5b
mov dword [esp + 0x74], eax
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x88]
mov ebx, dword [esp + 0x78]
mov dword [ecx], edx
mov ecx, 0xa
mov dword [eax], ebp
xor eax, eax
mov edi, ebx
mov esi, dword [esp + 0x74]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x70]
mov ecx, dword [esp + 0x7c]
sub edi, edx
mov dword [ebx + 0x10], eax
sub esi, ebp
mov dword [ebx], 0x28
lea eax, [edi*4 + 3]
mov dword [ebx + 4], edi
and al, 0xfc
mov dword [ebx + 8], esi
mov word [ebx + 0xc], 1
mov word [ebx + 0xe], 0x20
mov dword [ecx], eax
imul eax, dword [ebx + 8]
push eax
mov dword [esp + 0x8c], esi
call dword [sym.imp.MSVCRT.dll_malloc]
mov edx, dword [esp + 0x84]
add esp, 4
test eax, eax
mov dword [edx], eax
jne 0x421bf4
mov eax, dword [esp + 0x64]
push 0x43a44c
push eax
call fcn.00420310
mov ecx, dword [esp + 0x1c]
add esp, 8
push ecx
jmp 0x421996
mov ecx, dword [esp + 0x64]
mov ecx, dword [ecx + 0x28]
test ecx, ecx
je 0x421f09
cmp ecx, 1
je 0x421f09
cmp ecx, 3
je 0x421f09
cmp ecx, 2
je 0x421c85
cmp ecx, 4
je 0x421c85
cmp ecx, 5
jne 0x4220cb
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x70]
push edx
mov edx, dword [esp + 0x6c]
push ecx
push ebp
push edx
push eax
mov eax, dword [esp + 0x78]
mov ecx, dword [eax + 0x18]
push ecx
push eax
call fcn.00429990
add esp, 0x1c
test eax, eax
jne 0x4220cb
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov esi, dword [esp + 0x80]
mov ecx, dword [esi]
push ecx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov dword [esi], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x50
ret
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebp, eax
test ebp, ebp
jne 0x421cc4
mov eax, dword [esp + 0x64]
push 0x43a398
push eax
call fcn.00420310
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
add esp, 8
push ecx
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov esi, dword [esp + 0x80]
mov eax, dword [esi]
push eax
jmp 0x421c6c
mov ecx, dword [esp + 0x14]
push esi
push edi
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov esi, eax
test esi, esi
mov dword [esp + 0x84], esi
jne 0x421cfd
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov esi, dword [esp + 0x80]
mov ecx, dword [esi]
push ecx
jmp 0x421f60
xor eax, eax
lea edx, [esp + 0x28]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x18]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
sub ecx, eax
mov eax, dword [esp + 0x14]
push ecx
sub edx, dword [esp + 0x2c]
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x74], eax
test eax, eax
push ecx
jne 0x421d87
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edi, dword [esp + 0x80]
mov eax, dword [edi]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov dword [edi], 0
push ebp
call dword [sym.imp.GDI32.dll_DeleteDC]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x50
ret
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
test eax, eax
mov dword [esp + 0x70], eax
jne 0x421ddf
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edi, dword [esp + 0x80]
mov ecx, dword [edi]
push ecx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov dword [edi], 0
push ebp
call dword [sym.imp.GDI32.dll_DeleteDC]
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov edx, dword [esp + 0x74]
push edx
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x50
ret
mov eax, dword [esp + 0x84]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ebp
call esi
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x70]
push ecx
push edx
mov dword [esp + 0x80], eax
call esi
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x64]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x70]
push 0
push eax
push ecx
push edx
call fcn.00425b20
mov ecx, dword [esp + 0x28]
xor eax, eax
add esp, 0x10
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x6c]
sub edx, eax
mov eax, dword [esp + 0x20]
add edx, ecx
mov ecx, dword [esp + 0x28]
push 0xcc0020
push edx
mov edx, dword [esp + 0x70]
sub eax, ecx
mov ecx, dword [esp + 0x78]
add eax, edx
mov edx, dword [esp + 0x90]
push eax
push ecx
push edx
push edi
push 0
push 0
push ebp
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x78]
push eax
push ebp
call esi
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x70]
push ecx
push edx
call esi
mov edx, dword [esp + 0x80]
mov ecx, 0xa
mov esi, ebx
lea edi, [esp + 0x38]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x84]
neg eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x40], eax
mov eax, dword [edx]
push 0
push ecx
mov ecx, dword [ebx + 8]
push eax
push ecx
push 0
push edi
push ebp
call dword [sym.imp.GDI32.dll_GetDIBits]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
mov ebp, dword [sym.imp.GDI32.dll_DeleteDC]
mov dword [esp + 0x6c], eax
call ebp
push edi
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
call edi
mov edx, dword [esp + 0x70]
push edx
call ebp
mov eax, dword [esp + 0x74]
push eax
call edi
test esi, esi
jne 0x4220cb
mov ecx, dword [esp + 0x68]
push ecx
jmp 0x422094
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebp, eax
test ebp, ebp
jne 0x421f31
mov ecx, dword [esp + 0x64]
push 0x43a37c
push ecx
call fcn.00420310
add esp, 8
jmp 0x421c52
mov edx, dword [esp + 0x14]
push esi
push edi
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
test eax, eax
mov dword [esp + 0x70], eax
jne 0x421f80
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov esi, dword [esp + 0x80]
mov edx, dword [esi]
push edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov dword [esi], 0
push ebp
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x50
ret
push eax
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
xor edx, edx
mov dword [esp + 0x74], eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x18]
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x20], ecx
test edx, edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
je 0x421fd8
lea eax, [esp + 0x20]
mov ecx, edx
push eax
push ecx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x28]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x64]
cmp dword [edx + 0x28], 0
jne 0x421ffc
mov edx, dword [esp + 0x6c]
push 0x40cc0020
add eax, edx
push eax
mov eax, dword [esp + 0x70]
add ecx, eax
push ecx
mov ecx, dword [esp + 0x20]
push ecx
jmp 0x422020
mov edx, dword [esp + 0x2c]
push 0xcc0020
sub eax, edx
mov edx, dword [esp + 0x70]
add eax, edx
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x70]
sub ecx, edx
mov edx, dword [esp + 0x1c]
add ecx, eax
push ecx
push edx
push esi
push edi
push 0
push 0
push ebp
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x74]
push eax
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x80]
mov ecx, 0xa
mov esi, ebx
lea edi, [esp + 0x38]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0x38]
neg ecx
mov dword [esp + 0x40], ecx
mov ecx, dword [eax]
mov eax, dword [esp + 0x70]
push 0
push edx
mov edx, dword [ebx + 8]
push ecx
push edx
push 0
push eax
push ebp
call dword [sym.imp.GDI32.dll_GetDIBits]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
mov edi, eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [esp + 0x70]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
test esi, esi
jne 0x4220cb
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [esp + 0x64]
push 0x43a370
push edx
call fcn.00420310
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
add esp, 8
push eax
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov esi, dword [esp + 0x80]
mov edx, dword [esi]
push edx
jmp 0x421c6c
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ebp, dword [esp + 0x64]
mov eax, dword [ebp + 0x2b6c]
test eax, eax
je 0x422156
mov eax, dword [ebp + 0x2b70]
test eax, eax
je 0x422107
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov dword [ebp + 0x2b70], 0
mov esi, dword [esp + 0x7c]
mov edx, dword [ebx + 8]
imul edx, dword [esi]
push edx
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [ebp + 0x2b70], eax
test eax, eax
je 0x422156
mov ecx, dword [ebx + 8]
mov edx, dword [esp + 0x80]
imul ecx, dword [esi]
mov esi, dword [edx]
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 4]
mov dword [ebp + 0x2b74], ecx
mov edx, dword [ebx + 8]
mov dword [ebp + 0x2b78], edx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x50
ret