Function at 0x4c5014
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
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 [0x50c7e4], 0
jne 0x4c5513
mov byte [0x50c7e4], 1
mov byte [ebp - 0x1d], 0
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
cmp byte [ebx + 0x57], 0
jne 0x4c5067
test byte [ebx + 0x1c], 0x10
jne 0x4c5067
cmp byte [ebp + 8], 0
jne 0x4c550c
mov eax, ebx
call fcn.004420dc
test eax, eax
jle 0x4c550c
xor eax, eax
push ebp
push 0x4c5505
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.0040713c
dec eax
je 0x4c50b0
lea eax, [ebp - 0x34]
xor edx, edx
call fcn.004e10f8
test eax, eax
je 0x4c50b0
lea eax, [ebp - 0x34]
xor edx, edx
call fcn.004e110c
test eax, eax
jne 0x4c50d4
mov eax, ebx
call fcn.004453d4
xor ecx, ecx
mov edx, 0x16
call fcn.004c5520
mov byte [0x50c7e4], 0
call fcn.00404140
jmp 0x4c5513
mov byte [ebp - 0x3c], 0
mov byte [ebp - 0x3b], 0
lea eax, [ebp - 0x5c]
xor ecx, ecx
mov edx, ebx
call fcn.004c6b88
xor esi, esi
mov eax, ebx
call fcn.004420dc
mov dword [ebp - 0x10], eax
cmp esi, dword [ebp - 0x10]
jge 0x4c5405
push ebp
mov edx, esi
mov eax, ebx
call fcn.004420a0
call fcn.004c4f90
pop ecx
test al, al
je 0x4c53fb
mov eax, ebx
mov edx, dword [0x4547e4]
call fcn.00403a8c
test al, al
je 0x4c517b
cmp byte [ebx + 0x22f], 2
jne 0x4c517b
mov edx, esi
mov eax, ebx
call fcn.004420a0
cmp byte [eax + 0x5b], 0
je 0x4c517b
mov edx, esi
mov eax, ebx
call fcn.004420a0
mov edx, dword [0x43aee0]
call fcn.00403a8c
test al, al
je 0x4c517b
push 0
mov dx, 0x12
xor eax, eax
call fcn.00407980
push eax
mov edx, esi
mov eax, ebx
call fcn.004420a0
mov edx, dword [0x50c9cc]
mov edx, dword [edx]
pop ecx
call fcn.0043fd64
cmp byte [ebp - 0x1d], 0
jne 0x4c52d4
push 0
call fcn.004074bc
mov edi, eax
mov eax, dword [ebx + 0x4c]
push eax
mov eax, dword [ebx + 0x48]
push eax
push edi
call fcn.00407074
mov dword [ebp - 0x18], eax
push edi
push 0
call fcn.0040774c
push 0
call fcn.0040707c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
call fcn.00407244
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x1d], 1
mov eax, dword [ebp - 0x10]
dec eax
test eax, eax
jl 0x4c52d4
inc eax
mov dword [ebp - 0x24], eax
xor edi, edi
push ebp
mov edx, edi
mov eax, ebx
call fcn.004420a0
call fcn.004c4f90
pop ecx
test al, al
je 0x4c52ca
mov edx, edi
mov eax, ebx
call fcn.004420a0
test byte [eax + 0x50], 0x40
jne 0x4c529e
cmp byte [ebp - 0x3c], 1
jne 0x4c522c
mov edx, edi
mov eax, ebx
call fcn.004420a0
lea edx, [ebp - 0x6c]
call fcn.0043e544
lea edx, [ebp - 0x6c]
mov ecx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x14]
call fcn.004ca010
jmp 0x4c52ca
push 0xcc0020
mov edx, edi
mov eax, ebx
call fcn.004420a0
mov eax, dword [eax + 0x44]
add eax, dword [ebp - 0x50]
push eax
mov edx, edi
mov eax, ebx
call fcn.004420a0
mov eax, dword [eax + 0x40]
add eax, dword [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x5c]
call fcn.004284b8
call fcn.00423fec
push eax
mov edx, edi
mov eax, ebx
call fcn.004420a0
mov eax, dword [eax + 0x4c]
push eax
mov edx, edi
mov eax, ebx
call fcn.004420a0
mov eax, dword [eax + 0x48]
push eax
mov edx, edi
mov eax, ebx
call fcn.004420a0
mov eax, dword [eax + 0x44]
push eax
mov edx, edi
mov eax, ebx
call fcn.004420a0
mov eax, dword [eax + 0x40]
push eax
mov eax, dword [ebp - 0x14]
push eax
call fcn.0040704c
jmp 0x4c52ca
mov edx, edi
mov eax, ebx
call fcn.004420a0
call fcn.004c4f08
push eax
mov edx, edi
mov eax, ebx
call fcn.004420a0
lea edx, [ebp - 0x6c]
call fcn.0043e544
lea edx, [ebp - 0x6c]
mov eax, dword [ebp - 0x14]
pop ecx
call fcn.004ca010
inc edi
dec dword [ebp - 0x24]
jne 0x4c51d7
mov eax, dword [ebp - 0x14]
push eax
call fcn.0040723c
mov edi, eax
mov edx, esi
mov eax, ebx
call fcn.004420a0
lea edx, [ebp - 0x6c]
call fcn.0043e544
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.0040721c
test eax, eax
jne 0x4c5316
mov edx, esi
mov eax, ebx
call fcn.004420a0
xor ecx, ecx
mov edx, 0x16
call fcn.004c5548
mov edx, esi
mov eax, ebx
call fcn.004420a0
mov eax, dword [eax + 0x44]
push eax
mov edx, esi
mov eax, ebx
call fcn.004420a0
mov edx, dword [eax + 0x40]
mov eax, dword [ebp - 0x14]
pop ecx
call fcn.0043d4e0
mov edx, esi
mov eax, ebx
call fcn.004420a0
mov eax, dword [eax + 0x4c]
push eax
mov edx, esi
mov eax, ebx
call fcn.004420a0
mov eax, dword [eax + 0x48]
push eax
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
call fcn.004071dc
test byte [ebx + 0x54], 0x80
je 0x4c5388
mov edx, esi
mov eax, ebx
call fcn.004420a0
mov ax, word [eax + 0x54]
or ax, word [0x4c551c]
push eax
mov edx, esi
mov eax, ebx
call fcn.004420a0
pop edx
mov word [eax + 0x54], dx
push 0
mov edx, esi
mov eax, ebx
call fcn.004420a0
mov ecx, dword [ebp - 0x14]
mov edx, 0xf
call fcn.0043fd64
test byte [ebx + 0x54], 0x80
je 0x4c53cb
mov edx, esi
mov eax, ebx
call fcn.004420a0
mov dx, word [0x4c551c]
not edx
and dx, word [eax + 0x54]
push edx
mov edx, esi
mov eax, ebx
call fcn.004420a0
pop edx
mov word [eax + 0x54], dx
mov edx, esi
mov eax, ebx
call fcn.004420a0
mov eax, dword [eax + 0x44]
neg eax
push eax
mov edx, esi
mov eax, ebx
call fcn.004420a0
mov edx, dword [eax + 0x40]
neg edx
mov eax, dword [ebp - 0x14]
pop ecx
call fcn.0043d4e0
push edi
mov eax, dword [ebp - 0x14]
push eax
call fcn.0040722c
inc esi
cmp esi, dword [ebp - 0x10]
jl 0x4c50fd
cmp byte [ebp - 0x1d], 0
je 0x4c54d2
xor edi, edi
cmp edi, dword [ebp - 0x10]
jge 0x4c54d2
push ebp
mov edx, edi
mov eax, ebx
call fcn.004420a0
call fcn.004c4f90
pop ecx
test al, al
je 0x4c54c8
mov edx, edi
mov eax, ebx
call fcn.004420a0
mov eax, dword [eax + 0x44]
add eax, dword [ebp - 8]
push eax
mov edx, edi
mov eax, ebx
call fcn.004420a0
mov eax, dword [eax + 0x40]
add eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
call fcn.00407194
cmp eax, 0xff00ff
je 0x4c54c8
push 0xcc0020
mov edx, edi
mov eax, ebx
call fcn.004420a0
mov eax, dword [eax + 0x44]
push eax
mov edx, edi
mov eax, ebx
call fcn.004420a0
mov eax, dword [eax + 0x40]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov edx, edi
mov eax, ebx
call fcn.004420a0
mov eax, dword [eax + 0x4c]
push eax
mov edx, edi
mov eax, ebx
call fcn.004420a0
mov eax, dword [eax + 0x48]
push eax
mov edx, edi
mov eax, ebx
call fcn.004420a0
mov eax, dword [eax + 0x44]
add eax, dword [ebp - 8]
push eax
mov edx, edi
mov eax, ebx
call fcn.004420a0
mov eax, dword [eax + 0x40]
add eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.0040704c
inc edi
cmp edi, dword [ebp - 0x10]
jl 0x4c541a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c550c
cmp byte [ebp - 0x1d], 0
je 0x4c5504
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x14]
push eax
call fcn.00407244
mov eax, dword [ebp - 0x14]
push eax
call fcn.004070e4
mov eax, dword [ebp - 0x18]
push eax
call fcn.004070f4
ret
mov byte [0x50c7e4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc