Function at 0x524358
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, edx
mov dword [ebp - 4], eax
cmp byte [0x5a43f0], 0
jne 0x524852
mov byte [0x5a43f0], 1
mov byte [ebp - 0x25], 0
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x24], eax
cmp byte [ebx + 0x59], 0
jne 0x5243a5
test byte [ebx + 0x1c], 0x10
je 0x52484b
mov eax, ebx
call fcn.004ad3e4
test eax, eax
jle 0x52484b
xor eax, eax
push ebp
push 0x524844
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_GetClipBox
dec eax
je 0x5243ee
lea eax, [ebp - 0x3c]
xor edx, edx
call fcn.0057b0c0
test eax, eax
je 0x5243ee
lea eax, [ebp - 0x3c]
xor edx, edx
call fcn.0057b0d4
test eax, eax
jne 0x524412
mov eax, ebx
call fcn.004b18ac
xor ecx, ecx
mov edx, 0x16
call fcn.00524860
mov byte [0x5a43f0], 0
call fcn.00405c74
jmp 0x524852
mov byte [ebp - 0x44], 0
mov byte [ebp - 0x43], 0
lea eax, [ebp - 0x64]
xor ecx, ecx
mov edx, ebx
call fcn.00515150
xor esi, esi
mov eax, ebx
call fcn.004ad3e4
mov dword [ebp - 0x14], eax
cmp esi, dword [ebp - 0x14]
jge 0x524744
push ebp
mov edx, esi
mov eax, ebx
call fcn.004ad3a8
call fcn.005242d4
pop ecx
test al, al
je 0x52473a
mov eax, ebx
mov edx, dword [0x4c86ec]
call fcn.004052c4
test al, al
je 0x5244b9
cmp byte [ebx + 0x29e], 2
jne 0x5244b9
mov edx, esi
mov eax, ebx
call fcn.004ad3a8
cmp byte [eax + 0x5d], 0
je 0x5244b9
mov edx, esi
mov eax, ebx
call fcn.004ad3a8
mov edx, dword [0x4a18ec]
call fcn.004052c4
test al, al
je 0x5244b9
push 0
mov dx, 0x12
xor eax, eax
call fcn.0040c654
push eax
mov edx, esi
mov eax, ebx
call fcn.004ad3a8
mov edx, dword [0x5a4910]
mov edx, dword [edx]
pop ecx
call fcn.004a9e54
cmp byte [ebp - 0x25], 0
jne 0x524619
push 0
call sub.user32.dll_GetDC
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x4c]
push eax
mov eax, dword [ebx + 0x48]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
push eax
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x25], 1
mov eax, dword [ebp - 0x14]
dec eax
test eax, eax
jl 0x524619
inc eax
mov dword [ebp - 0x2c], eax
xor edi, edi
push ebp
mov edx, edi
mov eax, ebx
call fcn.004ad3a8
call fcn.005242d4
pop ecx
test al, al
je 0x52460f
mov edx, edi
mov eax, ebx
call fcn.004ad3a8
test byte [eax + 0x50], 0x40
jne 0x5245e3
cmp byte [ebp - 0x44], 1
jne 0x524571
mov edx, edi
mov eax, ebx
call fcn.004ad3a8
lea edx, [ebp - 0x74]
call fcn.004a81f4
lea edx, [ebp - 0x74]
mov ecx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x1c]
call fcn.0051853c
jmp 0x52460f
push 0xcc0020
mov edx, edi
mov eax, ebx
call fcn.004ad3a8
mov eax, dword [eax + 0x44]
add eax, dword [ebp - 0x58]
push eax
mov edx, edi
mov eax, ebx
call fcn.004ad3a8
mov eax, dword [eax + 0x40]
add eax, dword [ebp - 0x5c]
push eax
mov eax, dword [ebp - 0x64]
call fcn.0045bfa4
call fcn.0045670c
push eax
mov edx, edi
mov eax, ebx
call fcn.004ad3a8
mov eax, dword [eax + 0x4c]
push eax
mov edx, edi
mov eax, ebx
call fcn.004ad3a8
mov eax, dword [eax + 0x48]
push eax
mov edx, edi
mov eax, ebx
call fcn.004ad3a8
mov eax, dword [eax + 0x44]
push eax
mov edx, edi
mov eax, ebx
call fcn.004ad3a8
mov eax, dword [eax + 0x40]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.gdi32.dll_BitBlt
jmp 0x52460f
mov edx, edi
mov eax, ebx
call fcn.004ad3a8
call fcn.0052424c
push eax
mov edx, edi
mov eax, ebx
call fcn.004ad3a8
lea edx, [ebp - 0x74]
call fcn.004a81f4
lea edx, [ebp - 0x74]
mov eax, dword [ebp - 0x1c]
pop ecx
call fcn.0051853c
inc edi
dec dword [ebp - 0x2c]
jne 0x52451c
mov eax, dword [ebp - 0x1c]
push eax
call sub.gdi32.dll_SaveDC
mov dword [ebp - 0x10], eax
mov edx, esi
mov eax, ebx
call fcn.004ad3a8
lea edx, [ebp - 0x74]
call fcn.004a81f4
lea eax, [ebp - 0x74]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_RectVisible
test eax, eax
jne 0x52465c
mov edx, esi
mov eax, ebx
call fcn.004ad3a8
xor ecx, ecx
mov edx, 0x16
call fcn.00524888
mov edx, esi
mov eax, ebx
call fcn.004ad3a8
mov eax, dword [eax + 0x44]
push eax
mov edx, esi
mov eax, ebx
call fcn.004ad3a8
mov edx, dword [eax + 0x40]
mov eax, dword [ebp - 0x1c]
pop ecx
call fcn.004a6d3c
mov edx, esi
mov eax, ebx
call fcn.004ad3a8
mov eax, dword [eax + 0x4c]
push eax
mov edx, esi
mov eax, ebx
call fcn.004ad3a8
mov eax, dword [eax + 0x48]
push eax
push 0
push 0
mov eax, dword [ebp - 0x1c]
push eax
call sub.gdi32.dll_IntersectClipRect
test byte [ebx + 0x54], 0x80
je 0x5246c9
mov edx, esi
mov eax, ebx
call fcn.004ad3a8
mov edi, dword [eax + 0x54]
or edi, dword [0x52485c]
mov edx, esi
mov eax, ebx
call fcn.004ad3a8
mov dword [eax + 0x54], edi
push 0
mov edx, esi
mov eax, ebx
call fcn.004ad3a8
mov ecx, dword [ebp - 0x1c]
mov edx, 0xf
call fcn.004a9e54
test byte [ebx + 0x54], 0x80
je 0x524707
mov edx, esi
mov eax, ebx
call fcn.004ad3a8
mov edi, dword [0x52485c]
not edi
and edi, dword [eax + 0x54]
mov edx, esi
mov eax, ebx
call fcn.004ad3a8
mov dword [eax + 0x54], edi
mov edx, esi
mov eax, ebx
call fcn.004ad3a8
mov eax, dword [eax + 0x44]
neg eax
push eax
mov edx, esi
mov eax, ebx
call fcn.004ad3a8
mov edx, dword [eax + 0x40]
neg edx
mov eax, dword [ebp - 0x1c]
pop ecx
call fcn.004a6d3c
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.gdi32.dll_RestoreDC
inc esi
cmp esi, dword [ebp - 0x14]
jl 0x52443b
cmp byte [ebp - 0x25], 0
je 0x524811
xor edi, edi
cmp edi, dword [ebp - 0x14]
jge 0x524811
push ebp
mov edx, edi
mov eax, ebx
call fcn.004ad3a8
call fcn.005242d4
pop ecx
test al, al
je 0x524807
mov edx, edi
mov eax, ebx
call fcn.004ad3a8
mov eax, dword [eax + 0x44]
add eax, dword [ebp - 8]
push eax
mov edx, edi
mov eax, ebx
call fcn.004ad3a8
mov eax, dword [eax + 0x40]
add eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.gdi32.dll_GetPixel
cmp eax, 0xff00ff
je 0x524807
push 0xcc0020
mov edx, edi
mov eax, ebx
call fcn.004ad3a8
mov eax, dword [eax + 0x44]
push eax
mov edx, edi
mov eax, ebx
call fcn.004ad3a8
mov eax, dword [eax + 0x40]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov edx, edi
mov eax, ebx
call fcn.004ad3a8
mov eax, dword [eax + 0x4c]
push eax
mov edx, edi
mov eax, ebx
call fcn.004ad3a8
mov eax, dword [eax + 0x48]
push eax
mov edx, edi
mov eax, ebx
call fcn.004ad3a8
mov eax, dword [eax + 0x44]
add eax, dword [ebp - 8]
push eax
mov edx, edi
mov eax, ebx
call fcn.004ad3a8
mov eax, dword [eax + 0x40]
add eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_BitBlt
inc edi
cmp edi, dword [ebp - 0x14]
jl 0x524759
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52484b
cmp byte [ebp - 0x25], 0
je 0x524843
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 0x1c]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 0x20]
push eax
call sub.gdi32.dll_DeleteObject
ret
mov byte [0x5a43f0], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8